Class: Greeve::Map::Sovereignty

Inherits:
BaseItem
  • Object
show all
Defined in:
lib/greeve/map/sovereignty.rb

Overview

Provides sovereignty / ownership information for solar systems in New Eden, excluding wormhole space.

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

#solar_systemsGreeve::Rowset

Parameters:

  • solar_system_id (Integer)
  • alliance_id (Integer)
  • faction_id (Integer)
  • corporation_id (Integer)
  • solar_system_name (String)

Returns:



12
13
14
15
16
17
18
# File 'lib/greeve/map/sovereignty.rb', line 12

rowset :solar_systems, xpath: "eveapi/result/rowset[@name='solarSystems']" do
  attribute :solar_system_id,   xpath: "@solarSystemID",   type: :integer
  attribute :alliance_id,       xpath: "@allianceID",      type: :integer
  attribute :faction_id,        xpath: "@factionID",       type: :integer
  attribute :corporation_id,    xpath: "@corporationID",   type: :integer
  attribute :solar_system_name, xpath: "@solarSystemName", type: :string
end