Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonmagic/electric_motor
https://github.com/jonmagic/electric_motor
Last synced: 30 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jonmagic/electric_motor
- Owner: jonmagic
- Created: 2014-07-05T21:54:37.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-07-06T21:14:41.000Z (over 10 years ago)
- Last Synced: 2023-04-10T22:39:32.067Z (over 1 year ago)
- Language: Ruby
- Size: 250 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```