Sha256: 51041857bfaa29493efaf96c1a0f59cb4ee48566cc6cffa3943a7bcc02627562
Contents?: true
Size: 696 Bytes
Versions: 1
Compression:
Stored size: 696 Bytes
Contents
require 'forwardable' module EveOnline module ESI class CharacterPortrait < Base extend Forwardable API_ENDPOINT = 'https://esi.tech.ccp.is/v2/characters/%<character_id>s/portrait/?datasource=tranquility'.freeze attr_reader :character_id def initialize(options) super @character_id = options[:character_id] end def_delegators :model, :as_json, :tiny, :small, :medium, :large, :huge, :gigantic def model Models::CharacterPortrait.new(response) end memoize :model def scope; end def url format(API_ENDPOINT, character_id: character_id) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.14.0 | lib/eve_online/esi/character_portrait.rb |