class Greeve::Character::Contracts
Available contracts from a character.
@see eveonline-third-party-documentation.readthedocs.io/en/latest/xmlapi/character/char_contracts.html
Public Class Methods
new(character_id, opts = {})
click to toggle source
@param character_id [Integer] EVE character ID
@option opts [Integer] :contract_id (nil) ID of a specific contract
Calls superclass method
Greeve::BaseItem::new
# File lib/greeve/character/contracts.rb, line 39 def initialize(character_id, opts = {}) contract_id = opts.delete(:contract_id) opts[:query_params] = { "characterID" => character_id } opts[:query_params]["contractID"] = contract_id if contract_id super(opts) end