Sha256: c73daa0f1e5da57c8b6b9b2916619a96516c715847a42e996b3478720056daaa
Contents?: true
Size: 885 Bytes
Versions: 3
Compression:
Stored size: 885 Bytes
Contents
# frozen_string_literal: true require 'forwardable' module EveOnline module ESI class CharacterAttributes < Base extend Forwardable API_ENDPOINT = 'https://esi.evetech.net/v1/characters/%<character_id>s/attributes/?datasource=%<datasource>s' attr_reader :character_id def initialize(options) super @character_id = options.fetch(:character_id) end def_delegators :model, :as_json, :accrued_remap_cooldown_date, :bonus_remaps, :charisma, :intelligence, :last_remap_date, :memory, :perception, :willpower def model Models::Attributes.new(response) end memoize :model def scope 'esi-skills.read_skills.v1' 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.20.0 | lib/eve_online/esi/character_attributes.rb |
eve_online-0.19.0 | lib/eve_online/esi/character_attributes.rb |
eve_online-0.18.0 | lib/eve_online/esi/character_attributes.rb |