Class: Wowr::Classes::GuildBankBag

Inherits:
Item
  • Object
show all
Defined in:
lib/wowr/guild_bank.rb

Instance Attribute Summary collapse

Attributes inherited from Item

#icon_base, #id, #name

Instance Method Summary collapse

Methods inherited from Item

#icon

Constructor Details

#initialize(elem, api = nil) ⇒ GuildBankBag

Returns a new instance of GuildBankBag.



75
76
77
78
79
80
# File 'lib/wowr/guild_bank.rb', line 75

def initialize(elem, api = nil)
	super(elem, api)
	@viewable = (@viewable == "true")
	
	@items = []
end

Instance Attribute Details

#itemsObject

Returns the value of attribute items.



73
74
75
# File 'lib/wowr/guild_bank.rb', line 73

def items
  @items
end

#viewableObject (readonly)

Returns the value of attribute viewable.



72
73
74
# File 'lib/wowr/guild_bank.rb', line 72

def viewable
  @viewable
end