Class: BMT::Item

Inherits:
Object
  • Object
show all
Defined in:
lib/bmt/item.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#captionObject (readonly)

Returns the value of attribute caption.



3
4
5
# File 'lib/bmt/item.rb', line 3

def caption
  @caption
end

#descriptionObject (readonly)

Returns the value of attribute description.



3
4
5
# File 'lib/bmt/item.rb', line 3

def description
  @description
end

#keyObject (readonly)

Returns the value of attribute key.



3
4
5
# File 'lib/bmt/item.rb', line 3

def key
  @key
end

#stepObject (readonly)

Returns the value of attribute step.



3
4
5
# File 'lib/bmt/item.rb', line 3

def step
  @step
end

#titleObject (readonly)

Returns the value of attribute title.



3
4
5
# File 'lib/bmt/item.rb', line 3

def title
  @title
end

#toolsObject (readonly)

Returns the value of attribute tools.



3
4
5
# File 'lib/bmt/item.rb', line 3

def tools
  @tools
end

#vrt_categoryObject (readonly)

Returns the value of attribute vrt_category.



3
4
5
# File 'lib/bmt/item.rb', line 3

def vrt_category
  @vrt_category
end