Class: Greeve::Map::FacWarSystems
- Defined in:
- lib/greeve/map/fac_war_systems.rb
Overview
Note:
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
Constructor Details
This class inherits a constructor from Greeve::BaseItem
Instance Method Details
#solar_systems ⇒ Greeve::Rowset
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 |