Class: Sangi::Step
- Inherits:
-
Object
- Object
- Sangi::Step
- Defined in:
- lib/sangi/step.rb
Instance Attribute Summary collapse
-
#board ⇒ Object
readonly
Returns the value of attribute board.
-
#brief_message ⇒ Object
readonly
Returns the value of attribute brief_message.
-
#event ⇒ Object
readonly
Returns the value of attribute event.
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#learn_message ⇒ Object
readonly
Returns the value of attribute learn_message.
-
#numeric_state ⇒ Object
readonly
Returns the value of attribute numeric_state.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(index:, title:, brief_message:, learn_message:, event:, board:, numeric_state:) ⇒ Step
constructor
A new instance of Step.
Constructor Details
#initialize(index:, title:, brief_message:, learn_message:, event:, board:, numeric_state:) ⇒ Step
Returns a new instance of Step.
6 7 8 9 10 11 12 13 14 |
# File 'lib/sangi/step.rb', line 6 def initialize(index:, title:, brief_message:, learn_message:, event:, board:, numeric_state:) @index = index @title = title @brief_message = @learn_message = @event = event @board = board @numeric_state = numeric_state end |
Instance Attribute Details
#board ⇒ Object (readonly)
Returns the value of attribute board.
4 5 6 |
# File 'lib/sangi/step.rb', line 4 def board @board end |
#brief_message ⇒ Object (readonly)
Returns the value of attribute brief_message.
3 4 5 |
# File 'lib/sangi/step.rb', line 3 def @brief_message end |
#event ⇒ Object (readonly)
Returns the value of attribute event.
4 5 6 |
# File 'lib/sangi/step.rb', line 4 def event @event end |
#index ⇒ Object (readonly)
Returns the value of attribute index.
3 4 5 |
# File 'lib/sangi/step.rb', line 3 def index @index end |
#learn_message ⇒ Object (readonly)
Returns the value of attribute learn_message.
3 4 5 |
# File 'lib/sangi/step.rb', line 3 def @learn_message end |
#numeric_state ⇒ Object (readonly)
Returns the value of attribute numeric_state.
4 5 6 |
# File 'lib/sangi/step.rb', line 4 def numeric_state @numeric_state end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
3 4 5 |
# File 'lib/sangi/step.rb', line 3 def title @title end |