Class: Greeve::Map::Jumps

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

Overview

Returns the number of jumps in solarsystems within the last hour (doesn’t include wormhole space). Only solar systems where jumps 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_jumps (Integer)

Returns:



13
14
15
16
# File 'lib/greeve/map/jumps.rb', line 13

rowset :solar_systems, xpath: "eveapi/result/rowset[@name='solarSystems']" do
  attribute :solar_system_id, xpath: "@solarSystemID", type: :integer
  attribute :ship_jumps,      xpath: "@shipJumps",     type: :integer
end