Class: Journeyviz::Action
- Inherits:
-
Object
- Object
- Journeyviz::Action
- Includes:
- NormalizedName
- Defined in:
- lib/journeyviz/action.rb
Instance Attribute Summary collapse
-
#screen ⇒ Object
readonly
Returns the value of attribute screen.
Attributes included from NormalizedName
Instance Method Summary collapse
-
#initialize(name, screen, transition: nil) ⇒ Action
constructor
A new instance of Action.
- #raw_transition ⇒ Object
- #transition ⇒ Object
Constructor Details
#initialize(name, screen, transition: nil) ⇒ Action
Returns a new instance of Action.
10 11 12 13 14 |
# File 'lib/journeyviz/action.rb', line 10 def initialize(name, screen, transition: nil) assign_normalize_name(name) @screen = screen @transition = transition end |
Instance Attribute Details
#screen ⇒ Object (readonly)
Returns the value of attribute screen.
8 9 10 |
# File 'lib/journeyviz/action.rb', line 8 def screen @screen end |
Instance Method Details
#raw_transition ⇒ Object
23 24 25 |
# File 'lib/journeyviz/action.rb', line 23 def raw_transition @transition end |
#transition ⇒ Object
16 17 18 19 20 21 |
# File 'lib/journeyviz/action.rb', line 16 def transition case @transition when Symbol then find_screen_by_name(@transition) when Array then find_screen_by_full_qualifier(@transition) end end |