Class: FakeScheduler

Inherits:
Object
  • Object
show all
Defined in:
lib/atig/command/command_helper.rb

Instance Method Summary collapse

Constructor Details

#initialize(api) ⇒ FakeScheduler

Returns a new instance of FakeScheduler.



28
29
30
# File 'lib/atig/command/command_helper.rb', line 28

def initialize(api)
  @api = api
end

Instance Method Details

#delay(interval, opt = {}, &f) ⇒ Object



32
33
34
# File 'lib/atig/command/command_helper.rb', line 32

def delay(interval,opt={},&f)
  f.call @api
end

#limitObject



36
# File 'lib/atig/command/command_helper.rb', line 36

def limit; @api.limit end

#remainObject



37
# File 'lib/atig/command/command_helper.rb', line 37

def remain; @api.remain end

#resetObject



38
# File 'lib/atig/command/command_helper.rb', line 38

def reset; @api.reset end