Class: List::Step
- Inherits:
-
Object
- Object
- List::Step
- Defined in:
- lib/checkcheckit/list.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#commands ⇒ Object
Returns the value of attribute commands.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, body = '') ⇒ Step
constructor
A new instance of Step.
- #to_h ⇒ Object
Constructor Details
#initialize(name, body = '') ⇒ Step
Returns a new instance of Step.
44 45 46 47 |
# File 'lib/checkcheckit/list.rb', line 44 def initialize(name, body = '') @name = name @body = body end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
42 43 44 |
# File 'lib/checkcheckit/list.rb', line 42 def body @body end |
#commands ⇒ Object
Returns the value of attribute commands.
42 43 44 |
# File 'lib/checkcheckit/list.rb', line 42 def commands @commands end |
#name ⇒ Object
Returns the value of attribute name.
42 43 44 |
# File 'lib/checkcheckit/list.rb', line 42 def name @name end |
Instance Method Details
#to_h ⇒ Object
55 56 57 |
# File 'lib/checkcheckit/list.rb', line 55 def to_h {name: @name, body: @body} end |