Class: Esi::Calls::MarketOrders

Inherits:
Base
  • Object
show all
Defined in:
lib/esi/calls/markets.rb

Constant Summary

Constants inherited from Base

Base::CACHE_NAMESPACE

Instance Attribute Summary

Attributes inherited from Base

#params, #path

Instance Method Summary collapse

Methods inherited from Base

#cache_key, #method, #page, #page=, #paginated?, #url

Constructor Details

#initialize(region_id:, type_id: nil) ⇒ MarketOrders

Returns a new instance of MarketOrders.



52
53
54
55
56
57
# File 'lib/esi/calls/markets.rb', line 52

def initialize(region_id:, type_id: nil)
  @path = "/markets/#{region_id}/orders"
  @params = { order_type: :all }
  @params[:type_id] = type_id if type_id.present?
  @paginated = type_id.blank?
end