Class: Sangi::Step

Inherits:
Object
  • Object
show all
Defined in:
lib/sangi/step.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = brief_message
  @learn_message = learn_message
  @event = event
  @board = board
  @numeric_state = numeric_state
end

Instance Attribute Details

#boardObject (readonly)

Returns the value of attribute board.



4
5
6
# File 'lib/sangi/step.rb', line 4

def board
  @board
end

#brief_messageObject (readonly)

Returns the value of attribute brief_message.



3
4
5
# File 'lib/sangi/step.rb', line 3

def brief_message
  @brief_message
end

#eventObject (readonly)

Returns the value of attribute event.



4
5
6
# File 'lib/sangi/step.rb', line 4

def event
  @event
end

#indexObject (readonly)

Returns the value of attribute index.



3
4
5
# File 'lib/sangi/step.rb', line 3

def index
  @index
end

#learn_messageObject (readonly)

Returns the value of attribute learn_message.



3
4
5
# File 'lib/sangi/step.rb', line 3

def learn_message
  @learn_message
end

#numeric_stateObject (readonly)

Returns the value of attribute numeric_state.



4
5
6
# File 'lib/sangi/step.rb', line 4

def numeric_state
  @numeric_state
end

#titleObject (readonly)

Returns the value of attribute title.



3
4
5
# File 'lib/sangi/step.rb', line 3

def title
  @title
end