Class: Greeve::Map::FacWarSystems

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

Overview

Returns a list of contestable solar systems and the NPC faction currently occupying them. It should be noted that this only returns a non-zero ID if the occupying faction is not the sovereign faction.

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)
  • solar_system_name (String)
  • occupying_faction_id (Integer)
  • occupying_faction_name (String)
  • owning_faction_id (Integer)
  • owning_faction_name (String)
  • contested
  • victory_points (Integer)
  • victory_point_threshold (Integer)

Returns:



13
14
15
16
17
18
19
20
21
22
23
# File 'lib/greeve/map/fac_war_systems.rb', line 13

rowset :solar_systems, xpath: "eveapi/result/rowset[@name='solarSystems']" do
  attribute :solar_system_id,         xpath: "@solarSystemID",         type: :integer
  attribute :solar_system_name,       xpath: "@solarSystemName",       type: :string
  attribute :occupying_faction_id,    xpath: "@occupyingFactionID",    type: :integer
  attribute :occupying_faction_name,  xpath: "@occupyingFactionName",  type: :string
  attribute :owning_faction_id,       xpath: "@owningFactionID",       type: :integer
  attribute :owning_faction_name,     xpath: "@owningFactionName",     type: :string
  attribute :contested,               xpath: "@contested",             type: :boolean
  attribute :victory_points,          xpath: "@victoryPoints",         type: :integer
  attribute :victory_point_threshold, xpath: "@victoryPointThreshold", type: :integer
end