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.



144
145
146
147
148
149
150
# File 'lib/wowr/guild_bank.rb', line 144

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.



142
143
144
# File 'lib/wowr/guild_bank.rb', line 142

def count
  @count
end

#qiObject (readonly)

Returns the value of attribute qi.



142
143
144
# File 'lib/wowr/guild_bank.rb', line 142

def qi
  @qi
end

#subtypeObject (readonly)

Returns the value of attribute subtype.



142
143
144
# File 'lib/wowr/guild_bank.rb', line 142

def subtype
  @subtype
end

#typeObject (readonly)

Returns the value of attribute type.



142
143
144
# File 'lib/wowr/guild_bank.rb', line 142

def type
  @type
end