Class: Wowr::Classes::GuildBankLogItem
- 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
-
#count ⇒ Object
readonly
Returns the value of attribute count.
-
#qi ⇒ Object
readonly
Returns the value of attribute qi.
-
#subtype ⇒ Object
readonly
Returns the value of attribute subtype.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Attributes inherited from Item
Instance Method Summary collapse
-
#initialize(elem, api = nil) ⇒ GuildBankLogItem
constructor
A new instance of GuildBankLogItem.
Methods inherited from Item
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
#count ⇒ Object (readonly)
Returns the value of attribute count.
142 143 144 |
# File 'lib/wowr/guild_bank.rb', line 142 def count @count end |
#qi ⇒ Object (readonly)
Returns the value of attribute qi.
142 143 144 |
# File 'lib/wowr/guild_bank.rb', line 142 def qi @qi end |
#subtype ⇒ Object (readonly)
Returns the value of attribute subtype.
142 143 144 |
# File 'lib/wowr/guild_bank.rb', line 142 def subtype @subtype end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
142 143 144 |
# File 'lib/wowr/guild_bank.rb', line 142 def type @type end |