Class: Greeve::Character::AssetList
- Defined in:
- lib/greeve/character/asset_list.rb
Overview
Note:
Everything a character owns.
Attributes collapse
Instance Method Summary collapse
-
#initialize(character_id, opts = {}) ⇒ AssetList
constructor
A new instance of AssetList.
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 = {}) ⇒ AssetList
Returns a new instance of AssetList
22 23 24 25 26 27 28 29 |
# File 'lib/greeve/character/asset_list.rb', line 22 def initialize(character_id, opts = {}) opts[:query_params] = { "characterID" => character_id, "flat" => 1, } super(opts) end |
Instance Method Details
#assets ⇒ Greeve::Rowset
11 12 13 14 15 16 17 18 19 |
# File 'lib/greeve/character/asset_list.rb', line 11 rowset :assets, xpath: "eveapi/result/rowset[@name='assets']" do attribute :item_id, xpath: "@itemID", type: :integer attribute :location_id, xpath: "@locationID", type: :integer attribute :type_id, xpath: "@typeID", type: :integer attribute :quantity, xpath: "@quantity", type: :integer attribute :flag, xpath: "@flag", type: :integer attribute :singleton, xpath: "@singleton", type: :boolean attribute :raw_quantity, xpath: "@rawQuantity", type: :integer end |