Class: Greeve::Character::ContractItems

Inherits:
BaseItem
  • Object
show all
Defined in:
lib/greeve/character/contract_items.rb

Overview

Items and details of a particular contract.

Instance Method Summary collapse

Methods inherited from BaseItem

attribute, #cache_expired?, #cached_until, endpoint, #inspect, namespace, #refresh, rowset, #to_s

Methods included from Helpers::AttributeToHash

#to_h

Constructor Details

#initialize(character_id, contract_id, opts = {}) ⇒ ContractItems

Returns a new instance of ContractItems.

Parameters:

  • character_id (Integer)

    EVE character ID

  • contract_id (Integer)

    ID of the contract



22
23
24
25
26
27
28
29
# File 'lib/greeve/character/contract_items.rb', line 22

def initialize(character_id, contract_id, opts = {})
  opts[:query_params] = {
    "characterID" => character_id,
    "contractID" => contract_id,
  }

  super(opts)
end