Sha256: 7ee625ea3e26a7d81ff88a362358e4b9aca3c1574c1ed9b235c7b3d35a279d65
Contents?: true
Size: 864 Bytes
Versions: 4
Compression:
Stored size: 864 Bytes
Contents
# frozen_string_literal: true require 'forwardable' module EveOnline module ESI class CharacterAttributes < Base extend Forwardable API_PATH = '/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 @model ||= Models::Attributes.new(response) end def scope 'esi-skills.read_skills.v1' end def url format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems