Class: Greeve::Character::Medals

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

Overview

Medals the character has received.

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

Returns a new instance of Medals.

Parameters:

  • character_id (Integer)

    EVE character ID



34
35
36
37
# File 'lib/greeve/character/medals.rb', line 34

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