Class: Greeve::Eve::CharacterInfo

Inherits:
BaseItem
  • Object
show all
Defined in:
lib/greeve/eve/character_info.rb

Overview

Information about the character. Has three data sets it can return depending on the access mask.

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 = {}) ⇒ CharacterInfo

Returns a new instance of CharacterInfo.

Parameters:

  • character_id (Integer)

    EVE character ID



42
43
44
45
# File 'lib/greeve/eve/character_info.rb', line 42

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