Class: D3api::EquippedItemSet

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_setObject

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