Sha256: 150c19b7a440a9ef6e8475c4d921df3f4f932afbbe2c1f1af5e39d8e51da42e6
Contents?: true
Size: 933 Bytes
Versions: 2
Compression:
Stored size: 933 Bytes
Contents
# frozen_string_literal: true module EveOnline module ESI class CharacterAssetsLocations < Base API_ENDPOINT = 'https://esi.evetech.net/v2/characters/%<character_id>s/assets/locations/?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_locations output = [] response.each do |asset_location| output << Models::AssetLocation.new(asset_location) end output end memoize :assets_locations 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_locations.rb |
eve_online-0.19.0 | lib/eve_online/esi/character_assets_locations.rb |