Class: Greeve::Corporation::StarbaseDetail
- Defined in:
- lib/greeve/corporation/starbase_detail.rb
Overview
Note:
Details for a starbase.
Attributes collapse
Instance Method Summary collapse
-
#initialize(item_id, opts = {}) ⇒ StarbaseDetail
constructor
A new instance of StarbaseDetail.
Methods inherited from BaseItem
attribute, #cache_expired?, #cached_until, endpoint, #inspect, namespace, #refresh, rowset, #to_s
Methods included from Helpers::AttributeToHash
Constructor Details
#initialize(item_id, opts = {}) ⇒ StarbaseDetail
Returns a new instance of StarbaseDetail
51 52 53 54 55 |
# File 'lib/greeve/corporation/starbase_detail.rb', line 51 def initialize(item_id, opts = {}) opts[:query_params] = { "itemID" => item_id } super(opts) end |
Instance Method Details
#fuel ⇒ Greeve::Rowset
45 46 47 48 |
# File 'lib/greeve/corporation/starbase_detail.rb', line 45 rowset :fuel, xpath: "eveapi/result/rowset[@name='fuel']" do attribute :type_id, xpath: "@typeID", type: :integer attribute :quantity, xpath: "@quantity", type: :integer end |
#online_timestamp ⇒ Time
13 |
# File 'lib/greeve/corporation/starbase_detail.rb', line 13 attribute :online_timestamp, xpath: "eveapi/result/onlineTimestamp/?[0]", type: :datetime |
#state ⇒ Integer
11 |
# File 'lib/greeve/corporation/starbase_detail.rb', line 11 attribute :state, xpath: "eveapi/result/state/?[0]", type: :integer |
#state_timestamp ⇒ Time
12 |
# File 'lib/greeve/corporation/starbase_detail.rb', line 12 attribute :state_timestamp, xpath: "eveapi/result/stateTimestamp/?[0]", type: :datetime |