Sha256: e16c33131809758491e9b9837ffd66654193a0eeadd8f90d7a6afc31b4d502fa
Contents?: true
Size: 820 Bytes
Versions: 4
Compression:
Stored size: 820 Bytes
Contents
# frozen_string_literal: true module EveOnline module ESI class CharacterAssets < Base API_PATH = '/v3/characters/%<character_id>s/assets/?datasource=%<datasource>s&page=%<page>s' attr_reader :character_id, :page def initialize(options) super @character_id = options.fetch(:character_id) @page = options.fetch(:page, 1) end def assets @assets ||= begin output = [] response.each do |asset| output << Models::Asset.new(asset) end output end end def scope 'esi-assets.read_assets.v1' end def url format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource, page: page) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems