Sha256: 24ac44f30e466304d6043bfb52d592310324fe9f1e7010fe0b618ad459004431
Contents?: true
Size: 704 Bytes
Versions: 3
Compression:
Stored size: 704 Bytes
Contents
# frozen_string_literal: true require 'forwardable' module EveOnline module ESI class CharacterPortrait < Base extend Forwardable API_ENDPOINT = 'https://esi.evetech.net/v2/characters/%<character_id>s/portrait/?datasource=%<datasource>s' attr_reader :character_id def initialize(options) super @character_id = options.fetch(:character_id) end def_delegators :model, :as_json, :medium, :large, :huge, :small def model @model ||= Models::CharacterPortrait.new(response) end def scope; end def url format(API_ENDPOINT, character_id: character_id, datasource: datasource) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.23.0 | lib/eve_online/esi/character_portrait.rb |
eve_online-0.22.0 | lib/eve_online/esi/character_portrait.rb |
eve_online-0.21.0 | lib/eve_online/esi/character_portrait.rb |