Class: BMT::Step
- Inherits:
-
Object
- Object
- BMT::Step
- Defined in:
- lib/bmt/step.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#methodology ⇒ Object
readonly
Returns the value of attribute methodology.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(methodology:, attributes:) ⇒ Step
constructor
A new instance of Step.
- #items ⇒ Object
Constructor Details
#initialize(methodology:, attributes:) ⇒ Step
Returns a new instance of Step.
5 6 7 8 9 10 11 12 |
# File 'lib/bmt/step.rb', line 5 def initialize(methodology:, attributes:) @methodology = methodology @key = attributes['key'] @title = attributes['title'] @description = attributes['description'] @type = attributes['type'] @items_data = attributes['items'] || [] end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
3 4 5 |
# File 'lib/bmt/step.rb', line 3 def description @description end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
3 4 5 |
# File 'lib/bmt/step.rb', line 3 def key @key end |
#methodology ⇒ Object (readonly)
Returns the value of attribute methodology.
3 4 5 |
# File 'lib/bmt/step.rb', line 3 def methodology @methodology end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
3 4 5 |
# File 'lib/bmt/step.rb', line 3 def title @title end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/bmt/step.rb', line 3 def type @type end |