Class: EveOnline::ESI::MarketGroup
- Inherits:
-
Base
- Object
- Base
- EveOnline::ESI::MarketGroup
- Extended by:
- Forwardable
- Defined in:
- lib/eve_online/esi/market_group.rb
Constant Summary collapse
- API_PATH =
"/v1/markets/groups/%<market_group_id>s/"
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
- #additional_query_params ⇒ Object
-
#initialize(options) ⇒ MarketGroup
constructor
A new instance of MarketGroup.
- #model ⇒ Object
- #path ⇒ Object
- #scope ⇒ Object
Constructor Details
#initialize(options) ⇒ MarketGroup
Returns a new instance of MarketGroup.
14 15 16 17 18 |
# File 'lib/eve_online/esi/market_group.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/market_group.rb', line 12 def id @id end |
Instance Method Details
#additional_query_params ⇒ Object
30 31 32 |
# File 'lib/eve_online/esi/market_group.rb', line 30 def additional_query_params [:language] end |
#model ⇒ Object
23 24 25 |
# File 'lib/eve_online/esi/market_group.rb', line 23 def model @model ||= Models::MarketGroup.new(response) end |
#path ⇒ Object
34 35 36 |
# File 'lib/eve_online/esi/market_group.rb', line 34 def path format(API_PATH, market_group_id: id) end |
#scope ⇒ Object
27 28 |
# File 'lib/eve_online/esi/market_group.rb', line 27 def scope end |