Sha256: 066c7cc31c7f1d07551ce8340cfa08eeebe77b6d37d8e26d06ebf9272bcbf12f
Contents?: true
Size: 783 Bytes
Versions: 2
Compression:
Stored size: 783 Bytes
Contents
# frozen_string_literal: true module EveOnline module ESI class CharacterAssets < Base API_ENDPOINT = 'https://esi.evetech.net/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 output = [] response.each do |asset| output << Models::Asset.new(asset) end output end memoize :assets def scope 'esi-assets.read_assets.v1' end def url format(API_ENDPOINT, character_id: character_id, datasource: datasource, page: page) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.20.0 | lib/eve_online/esi/character_assets.rb |
eve_online-0.19.0 | lib/eve_online/esi/character_assets.rb |