Class: FakeScheduler
- Inherits:
-
Object
- Object
- FakeScheduler
- Defined in:
- lib/atig/command/command_helper.rb
Instance Method Summary collapse
- #delay(interval, opt = {}, &f) ⇒ Object
-
#initialize(api) ⇒ FakeScheduler
constructor
A new instance of FakeScheduler.
- #limit ⇒ Object
- #remain ⇒ Object
- #reset ⇒ Object
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 |
#limit ⇒ Object
36 |
# File 'lib/atig/command/command_helper.rb', line 36 def limit; @api.limit end |
#remain ⇒ Object
37 |
# File 'lib/atig/command/command_helper.rb', line 37 def remain; @api.remain end |
#reset ⇒ Object
38 |
# File 'lib/atig/command/command_helper.rb', line 38 def reset; @api.reset end |