Class: Greeve::Character::PlanetaryLinks
- Defined in:
- lib/greeve/character/planetary_links.rb
Overview
Note:
Planetary links for colonies owned by character.
Attributes collapse
Instance Method Summary collapse
-
#initialize(character_id, planet_id, opts = {}) ⇒ PlanetaryLinks
constructor
A new instance of PlanetaryLinks.
Methods inherited from BaseItem
attribute, #cache_expired?, #cached_until, endpoint, #inspect, namespace, #refresh, rowset, #to_s
Methods included from Helpers::AttributeToHash
Constructor Details
#initialize(character_id, planet_id, opts = {}) ⇒ PlanetaryLinks
Returns a new instance of PlanetaryLinks
20 21 22 23 24 25 26 27 |
# File 'lib/greeve/character/planetary_links.rb', line 20 def initialize(character_id, planet_id, opts = {}) opts[:query_params] = { "characterID" => character_id, "planetID" => planet_id, } super(opts) end |
Instance Method Details
#links ⇒ Greeve::Rowset
11 12 13 14 15 |
# File 'lib/greeve/character/planetary_links.rb', line 11 rowset :links, xpath: "eveapi/result/rowset[@name='links']" do attribute :source_pin_id, xpath: "@sourcePinID", type: :integer attribute :destination_pin_id, xpath: "@destinationPinID", type: :integer attribute :link_level, xpath: "@linkLevel", type: :integer end |