Class: Greeve::Character::AssetList

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

Overview

Everything a character owns.

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, opts = {}) ⇒ AssetList

Returns a new instance of AssetList.

Parameters:

  • character_id (Integer)

    EVE character ID



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

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

  super(opts)
end