Class: D3api::EquippedItemSet
- Inherits:
-
Object
- Object
- D3api::EquippedItemSet
- Defined in:
- lib/d3api/item/equipped_item_set.rb
Instance Attribute Summary collapse
-
#item_set ⇒ Object
Returns the value of attribute item_set.
Instance Method Summary collapse
-
#initialize(*array) ⇒ EquippedItemSet
constructor
A new instance of EquippedItemSet.
Constructor Details
#initialize(*array) ⇒ EquippedItemSet
Returns a new instance of EquippedItemSet.
5 6 7 8 9 10 11 12 13 |
# File 'lib/d3api/item/equipped_item_set.rb', line 5 def initialize(*array) equipped_items = [] array[0].each do |item| equipped_items << EquippedItem.new(item) end set_method(equipped_items) end |
Instance Attribute Details
#item_set ⇒ Object
Returns the value of attribute item_set.
3 4 5 |
# File 'lib/d3api/item/equipped_item_set.rb', line 3 def item_set @item_set end |