Class: Greeve::Map::Kills

Inherits:
BaseItem show all
Defined in:
lib/greeve/map/kills.rb

Overview

Provides number of ship, pod and NPC kills per solar system within the last hour (doesn’t include wormhole space). Only solar systems where kills have been made are listed; assume zero in case the system is not listed.

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)
  • ship_kills (Integer)
  • faction_kills (Integer)
  • pod_kills (Integer)

Returns:



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

rowset :solar_systems, xpath: "eveapi/result/rowset[@name='solarSystems']" do
  attribute :solar_system_id, xpath: "@solarSystemID", type: :integer
  attribute :ship_kills,      xpath: "@shipKills",     type: :integer
  attribute :faction_kills,   xpath: "@factionKills",  type: :integer
  attribute :pod_kills,       xpath: "@podKills",      type: :integer
end