Class: EveOnline::ESI::CharacterPortrait

Inherits:
Base
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/eve_online/esi/character_portrait.rb

Constant Summary collapse

API_PATH =
"/v2/characters/%<character_id>s/portrait/"

Constants inherited from Base

Base::API_HOST

Instance Attribute Summary collapse

Attributes inherited from Base

#_open_timeout, #_read_timeout, #_write_timeout, #adapter, #language, #middlewares, #token

Instance Method Summary collapse

Methods inherited from Base

#add_middleware, #additional_query_params, #base_query_params, #connection, #error_limit_remain, #error_limit_reset, #http_method, #open_timeout, #open_timeout=, #page, #query, #read_timeout, #read_timeout=, #request_id, #resource, #response, #total_pages, #uri, #url, #user_agent, #write_timeout, #write_timeout=

Constructor Details

#initialize(options) ⇒ CharacterPortrait

Returns a new instance of CharacterPortrait.



14
15
16
17
18
# File 'lib/eve_online/esi/character_portrait.rb', line 14

def initialize(options)
  super

  @character_id = options.fetch(:character_id)
end

Instance Attribute Details

#character_idObject (readonly)

Returns the value of attribute character_id.



12
13
14
# File 'lib/eve_online/esi/character_portrait.rb', line 12

def character_id
  @character_id
end

Instance Method Details

#modelObject



22
23
24
# File 'lib/eve_online/esi/character_portrait.rb', line 22

def model
  @model ||= Models::CharacterPortrait.new(response)
end

#pathObject



29
30
31
# File 'lib/eve_online/esi/character_portrait.rb', line 29

def path
  format(API_PATH, character_id: character_id)
end

#scopeObject



26
27
# File 'lib/eve_online/esi/character_portrait.rb', line 26

def scope
end