Class: Geppeto::Commands::Events

Inherits:
Object
  • Object
show all
Defined in:
lib/commands/events.rb

Instance Method Summary collapse

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

#startObject



8
9
10
# File 'lib/commands/events.rb', line 8

def start
  @scout.request("events.start")
end

#stopObject



12
13
14
# File 'lib/commands/events.rb', line 12

def stop
  @scout.request("events.stop")
end