Class: Greeve::Eve::ConquerableStationList

Inherits:
BaseItem
  • Object
show all
Defined in:
lib/greeve/eve/conquerable_station_list.rb

Overview

A list of conquerable stations in New Eden.

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

#outpostsGreeve::Rowset

Parameters:

  • station_id (Integer)
  • station_name (String)
  • station_type_id (Integer)
  • solar_system_id (Integer)
  • corporation_id (Integer)
  • corporation_name (String)
  • x (Integer)
  • y (Integer)
  • z (Integer)

Returns:



11
12
13
14
15
16
17
18
19
20
21
# File 'lib/greeve/eve/conquerable_station_list.rb', line 11

rowset :outposts, xpath: "eveapi/result/rowset[@name='outposts']" do
  attribute :station_id,       xpath: "@stationID",       type: :integer
  attribute :station_name,     xpath: "@stationName",     type: :string
  attribute :station_type_id,  xpath: "@stationTypeID",   type: :integer
  attribute :solar_system_id,  xpath: "@solarSystemID",   type: :integer
  attribute :corporation_id,   xpath: "@corporationID",   type: :integer
  attribute :corporation_name, xpath: "@corporationName", type: :string
  attribute :x,                xpath: "@x",               type: :integer
  attribute :y,                xpath: "@y",               type: :integer
  attribute :z,                xpath: "@z",               type: :integer
end