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.
243 244 245 246 247 248 249 250 251 252 253 |
# File 'lib/projectsimulator.rb', line 243 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.
241 242 243 |
# File 'lib/projectsimulator.rb', line 241 def to_type @to_type end |