Class: EveOnline::ESI::UniverseConstellation
- Extended by:
- Forwardable
- Defined in:
- lib/eve_online/esi/universe_constellation.rb
Constant Summary collapse
- API_PATH =
"/v1/universe/constellations/%<constellation_id>s/"
Constants inherited from Base
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Attributes inherited from Base
#_open_timeout, #_read_timeout, #_write_timeout, #adapter, #language, #middlewares, #token
Instance Method Summary collapse
- #additional_query_params ⇒ Object
-
#initialize(options) ⇒ UniverseConstellation
constructor
A new instance of UniverseConstellation.
- #model ⇒ Object
- #path ⇒ Object
- #scope ⇒ Object
Methods inherited from Base
#add_middleware, #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) ⇒ UniverseConstellation
Returns a new instance of UniverseConstellation.
14 15 16 17 18 |
# File 'lib/eve_online/esi/universe_constellation.rb', line 14 def initialize() super @id = .fetch(:id) end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
12 13 14 |
# File 'lib/eve_online/esi/universe_constellation.rb', line 12 def id @id end |
Instance Method Details
#additional_query_params ⇒ Object
30 31 32 |
# File 'lib/eve_online/esi/universe_constellation.rb', line 30 def additional_query_params [:language] end |
#model ⇒ Object
23 24 25 |
# File 'lib/eve_online/esi/universe_constellation.rb', line 23 def model @model ||= Models::Constellation.new(response) end |
#path ⇒ Object
34 35 36 |
# File 'lib/eve_online/esi/universe_constellation.rb', line 34 def path format(API_PATH, constellation_id: id) end |
#scope ⇒ Object
27 28 |
# File 'lib/eve_online/esi/universe_constellation.rb', line 27 def scope end |