Class: Wowr::Classes::GuildBankLogItem

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

Overview

Simple item that appears in Wowr::Classes::GuildBankLog entries <item count=“1” icon=“inv_potion_92” id=“12820” name=“Winterfall Firewater” qi=“1” subtype=“” type=“consumables”/>

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) ⇒ GuildBankLogItem

Returns a new instance of GuildBankLogItem.



148
149
150
151
152
153
154
# File 'lib/wowr/guild_bank.rb', line 148

def initialize(elem, api = nil)
	super(elem, api)
	@count		= elem[:count].to_i
	@qi				= elem[:qi].to_i
	@subtype	= elem[:subtype] == "" ? nil : elem[:subtype]
	@type			= elem[:type]
end

Instance Attribute Details

#countObject (readonly)

Returns the value of attribute count.



146
147
148
# File 'lib/wowr/guild_bank.rb', line 146

def count
  @count
end

#qiObject (readonly)

Returns the value of attribute qi.



146
147
148
# File 'lib/wowr/guild_bank.rb', line 146

def qi
  @qi
end

#subtypeObject (readonly)

Returns the value of attribute subtype.



146
147
148
# File 'lib/wowr/guild_bank.rb', line 146

def subtype
  @subtype
end

#typeObject (readonly)

Returns the value of attribute type.



146
147
148
# File 'lib/wowr/guild_bank.rb', line 146

def type
  @type
end