Sha256: 23c493d521aa09a015b132952933c60c3ed0e5621b40b8c53181c0ed42950c81
Contents?: true
Size: 905 Bytes
Versions: 2
Compression:
Stored size: 905 Bytes
Contents
# frozen_string_literal: true module EveOnline module ESI class CharacterAssetsNames < Base API_ENDPOINT = 'https://esi.evetech.net/v1/characters/%<character_id>s/assets/names/?datasource=%<datasource>s' attr_reader :character_id, :item_ids def initialize(options) super @character_id = options.fetch(:character_id) @item_ids = options.fetch(:item_ids) end def assets_names output = [] response.each do |asset_name| output << Models::AssetName.new(asset_name) end output end memoize :assets_names def http_method 'Post' end def payload item_ids.to_json end def scope 'esi-assets.read_assets.v1' end def url format(API_ENDPOINT, character_id: character_id, datasource: datasource) 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_names.rb |
eve_online-0.19.0 | lib/eve_online/esi/character_assets_names.rb |