Class: EveOnline::ESI::UniversePlanet

Inherits:
Base
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/eve_online/esi/universe_planet.rb

Constant Summary collapse

API_PATH =
"/v1/universe/planets/%<planet_id>s/"

Constants inherited from Base

Base::API_HOST

Instance Attribute Summary collapse

Attributes inherited from Base

#_open_timeout, #_read_timeout, #_write_timeout, #adapter, #language, #middlewares, #token

Instance Method Summary collapse

Methods inherited from Base

#add_middleware, #additional_query_params, #base_query_params, #connection, #error_limit_remain, #error_limit_reset, #http_method, #open_timeout, #open_timeout=, #page, #query, #read_timeout, #read_timeout=, #request_id, #resource, #response, #total_pages, #uri, #url, #user_agent, #write_timeout, #write_timeout=

Constructor Details

#initialize(options = {}) ⇒ UniversePlanet

Returns a new instance of UniversePlanet.



14
15
16
17
18
# File 'lib/eve_online/esi/universe_planet.rb', line 14

def initialize(options = {})
  super

  @id = options.fetch(:id)
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



12
13
14
# File 'lib/eve_online/esi/universe_planet.rb', line 12

def id
  @id
end

Instance Method Details

#modelObject



23
24
25
# File 'lib/eve_online/esi/universe_planet.rb', line 23

def model
  @model ||= Models::Planet.new(response)
end

#pathObject



30
31
32
# File 'lib/eve_online/esi/universe_planet.rb', line 30

def path
  format(API_PATH, planet_id: id)
end

#scopeObject



27
28
# File 'lib/eve_online/esi/universe_planet.rb', line 27

def scope
end