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