Class: Geppeto::Commands::Events
- Inherits:
-
Object
- Object
- Geppeto::Commands::Events
- Defined in:
- lib/commands/events.rb
Instance Method Summary collapse
-
#initialize(scout) ⇒ Events
constructor
A new instance of Events.
- #setcycle(digitalMs, analogMs, peripheralMs) ⇒ Object
- #start ⇒ Object
- #stop ⇒ Object
Constructor Details
#initialize(scout) ⇒ Events
Returns a new instance of Events.
4 5 6 |
# File 'lib/commands/events.rb', line 4 def initialize(scout) @scout = scout end |
Instance Method Details
#setcycle(digitalMs, analogMs, peripheralMs) ⇒ Object
16 17 18 |
# File 'lib/commands/events.rb', line 16 def setcycle(digitalMs, analogMs, peripheralMs) @scout.request("events.setcycle", digitalMs, analogMs, peripheralMs ) end |
#start ⇒ Object
8 9 10 |
# File 'lib/commands/events.rb', line 8 def start @scout.request("events.start") end |
#stop ⇒ Object
12 13 14 |
# File 'lib/commands/events.rb', line 12 def stop @scout.request("events.stop") end |