Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jonmagic/electric_motor


https://github.com/jonmagic/electric_motor

Last synced: 30 days ago
JSON representation

Awesome Lists containing this project

README

        

# Electric Motor

An electric motor and it's physics modeled in Ruby.

```ruby
motor = ElectricMotor.new
motor.running?
=> false
motor.rpm
=> 0
motor.power(true)
motor.running?
=> true
motor.rpm
=> 1000
motor.power(false)
motor.running?
=> false
motor.rpm
=> 0
```