class Greeve::Corporation::Contracts

Availabile contracts for a corporation.

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

Public Class Methods

new(opts = {}) click to toggle source

@option opts [Integer] :contract_id (nil) ID of a specific contract

Calls superclass method Greeve::BaseItem::new
# File lib/greeve/corporation/contracts.rb, line 37
def initialize(opts = {})
  contract_id = opts.delete(:contract_id)

  opts[:query_params] = { "contractID" => contract_id } if contract_id

  super(opts)
end