Class: ProjectSimulator::Action
- Inherits:
-
Object
- Object
- ProjectSimulator::Action
- 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, event: '', debug: false) ⇒ Action
constructor
A new instance of Action.
Constructor Details
#initialize(s, event: '', debug: false) ⇒ Action
Returns a new instance of Action.
197 198 199 200 201 202 203 204 205 |
# File 'lib/projectsimulator.rb', line 197 def initialize(s, event: '', debug: false) super() @debug = debug params = {s: s, event: event} actions(params) @to_type = find_action(s) || {} end |
Instance Attribute Details
#to_type ⇒ Object (readonly)
Returns the value of attribute to_type.
195 196 197 |
# File 'lib/projectsimulator.rb', line 195 def to_type @to_type end |