Class: Greeve::Character::AccountBalance
- Defined in:
- lib/greeve/character/account_balance.rb
Overview
Note:
Character account balance.
Attributes collapse
Instance Method Summary collapse
-
#initialize(character_id, opts = {}) ⇒ AccountBalance
constructor
A new instance of AccountBalance.
Methods inherited from BaseItem
attribute, #cache_expired?, #cached_until, endpoint, #inspect, namespace, #refresh, rowset, #to_s
Methods included from Helpers::AttributeToHash
Constructor Details
#initialize(character_id, opts = {}) ⇒ AccountBalance
Returns a new instance of AccountBalance
18 19 20 21 |
# File 'lib/greeve/character/account_balance.rb', line 18 def initialize(character_id, opts = {}) opts[:query_params] = { "characterID" => character_id } super(opts) end |
Instance Method Details
#accounts ⇒ Greeve::Rowset
11 12 13 14 15 |
# File 'lib/greeve/character/account_balance.rb', line 11 rowset :accounts, xpath: "eveapi/result/rowset[@name='accounts']" do attribute :account_id, xpath: "@accountID", type: :integer attribute :account_key, xpath: "@accountKey", type: :integer attribute :balance, xpath: "@balance", type: :numeric end |