Class: Greeve::Corporation::MarketOrders
- Defined in:
- lib/greeve/corporation/market_orders.rb
Overview
Corporation market orders.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ MarketOrders
constructor
A new instance of MarketOrders.
Methods inherited from BaseItem
attribute, #cache_expired?, #cached_until, endpoint, #inspect, namespace, #refresh, rowset, #to_s
Methods included from Helpers::AttributeToHash
Constructor Details
#initialize(opts = {}) ⇒ MarketOrders
Returns a new instance of MarketOrders.
30 31 32 33 34 35 36 |
# File 'lib/greeve/corporation/market_orders.rb', line 30 def initialize(opts = {}) order_id = opts.delete(:order_id) opts[:query_params] = { "orderID" => order_id } if order_id super(opts) end |