Sha256: eb43a3e710340c3af08d77d61de79ff5e78b8dd879640bdff5da9e92b3c0fcf8
Contents?: true
Size: 942 Bytes
Versions: 1
Compression:
Stored size: 942 Bytes
Contents
# frozen_string_literal: true module EveOnline module ESI class CharacterAssetsNames < Base API_PATH = '/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 @assets_names ||= begin output = [] response.each do |asset_name| output << Models::AssetName.new(asset_name) end output end end def http_method 'Post' end def payload item_ids.to_json end def scope 'esi-assets.read_assets.v1' end def url format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.24.0 | lib/eve_online/esi/character_assets_names.rb |