Class: Greeve::Character::PlanetaryLinks

Inherits:
BaseItem
  • Object
show all
Defined in:
lib/greeve/character/planetary_links.rb

Overview

Planetary links for colonies owned by character.

Instance Method Summary collapse

Methods inherited from BaseItem

attribute, #cache_expired?, #cached_until, endpoint, #inspect, namespace, #refresh, rowset, #to_s

Methods included from Helpers::AttributeToHash

#to_h

Constructor Details

#initialize(character_id, planet_id, opts = {}) ⇒ PlanetaryLinks

Returns a new instance of PlanetaryLinks.

Parameters:



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