Class: Greeve::Corporation::StarbaseList

Inherits:
BaseItem
  • Object
show all
Defined in:
lib/greeve/corporation/starbase_list.rb

Overview

List of corporation starbases.

Attributes collapse

Methods inherited from BaseItem

attribute, #cache_expired?, #cached_until, endpoint, #initialize, #inspect, namespace, #refresh, rowset, #to_s

Methods included from Helpers::AttributeToHash

#to_h

Constructor Details

This class inherits a constructor from Greeve::BaseItem

Instance Method Details

#starbasesGreeve::Rowset

Parameters:

  • item_id (Integer)
  • type_id (Integer)
  • location_id (Integer)
  • moon_id (Integer)
  • state (Integer)
  • state_timestamp (Time)
  • online_timestamp (Time)
  • standing_owner_id (Integer)

Returns:



11
12
13
14
15
16
17
18
19
20
# File 'lib/greeve/corporation/starbase_list.rb', line 11

rowset :starbases, xpath: "eveapi/result/rowset[@name='starbases']" do
  attribute :item_id,           xpath: "@itemID",          type: :integer
  attribute :type_id,           xpath: "@typeID",          type: :integer
  attribute :location_id,       xpath: "@locationID",      type: :integer
  attribute :moon_id,           xpath: "@moonID",          type: :integer
  attribute :state,             xpath: "@state",           type: :integer
  attribute :state_timestamp,   xpath: "@stateTimestamp",  type: :datetime
  attribute :online_timestamp,  xpath: "@onlineTimestamp", type: :datetime
  attribute :standing_owner_id, xpath: "@standingOwnerID", type: :integer
end