Class: ProjectSimulator::Trigger
- Inherits:
-
Object
- Object
- ProjectSimulator::Trigger
- Includes:
- AppRoutes
- Defined in:
- lib/projectsimulator.rb
Instance Attribute Summary collapse
-
#to_type ⇒ Object
readonly
Returns the value of attribute to_type.
Instance Method Summary collapse
-
#initialize(s, time: nil, debug: false) ⇒ Trigger
constructor
A new instance of Trigger.
Constructor Details
#initialize(s, time: nil, debug: false) ⇒ Trigger
Returns a new instance of Trigger.
273 274 275 276 277 278 279 280 281 282 283 |
# File 'lib/projectsimulator.rb', line 273 def initialize(s, time: nil, debug: false) super() @time, @debug = time, debug params = {s: s} puts 'inside Trigger' puts 'params: ' + params.inspect triggers(params) @to_type = find_trigger(s) end |
Instance Attribute Details
#to_type ⇒ Object (readonly)
Returns the value of attribute to_type.
271 272 273 |
# File 'lib/projectsimulator.rb', line 271 def to_type @to_type end |