Class: Dogfood::Step
- Inherits:
-
Object
- Object
- Dogfood::Step
- Defined in:
- lib/dogfood/step.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#actor ⇒ Object
readonly
Returns the value of attribute actor.
-
#event ⇒ Object
readonly
Returns the value of attribute event.
-
#notes ⇒ Object
readonly
Returns the value of attribute notes.
-
#number ⇒ Object
readonly
Returns the value of attribute number.
Instance Method Summary collapse
-
#initialize(number:, actor:, event:, action:, notes: nil) ⇒ Step
constructor
A new instance of Step.
- #to_row ⇒ Object
Constructor Details
#initialize(number:, actor:, event:, action:, notes: nil) ⇒ Step
Returns a new instance of Step.
7 8 9 10 11 12 13 |
# File 'lib/dogfood/step.rb', line 7 def initialize(number:, actor:, event:, action:, notes: nil) @number = number @actor = actor @event = event @action = action @notes = notes || "" end |
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action.
5 6 7 |
# File 'lib/dogfood/step.rb', line 5 def action @action end |
#actor ⇒ Object (readonly)
Returns the value of attribute actor.
5 6 7 |
# File 'lib/dogfood/step.rb', line 5 def actor @actor end |
#event ⇒ Object (readonly)
Returns the value of attribute event.
5 6 7 |
# File 'lib/dogfood/step.rb', line 5 def event @event end |
#notes ⇒ Object (readonly)
Returns the value of attribute notes.
5 6 7 |
# File 'lib/dogfood/step.rb', line 5 def notes @notes end |
#number ⇒ Object (readonly)
Returns the value of attribute number.
5 6 7 |
# File 'lib/dogfood/step.rb', line 5 def number @number end |
Instance Method Details
#to_row ⇒ Object
15 16 17 |
# File 'lib/dogfood/step.rb', line 15 def to_row [number, actor, event, action, notes] end |