class Greeve::Character::MarketOrders

Character market orders.

@see eveonline-third-party-documentation.readthedocs.io/en/latest/xmlapi/character/char_marketorders.html

Public Class Methods

new(character_id, opts = {}) click to toggle source

@param character_id [Integer] EVE character ID

@option opts [Integer] :order_id Optional order ID of order to retrieve

Calls superclass method Greeve::BaseItem::new
# File lib/greeve/character/market_orders.rb, line 32
def initialize(character_id, opts = {})
  order_id = opts.delete(:order_id)

  opts[:query_params] = { "characterID" => character_id }
  opts[:query_params]["orderID"] = order_id if order_id

  super(opts)
end