Sha256: cc22322f2a0e88f9f003f549a0bbe0db588082af0d5bae7a25d3780098766eb1
Contents?: true
Size: 961 Bytes
Versions: 9
Compression:
Stored size: 961 Bytes
Contents
# frozen_string_literal: true module EveOnline module ESI class CharacterAssetsLocations < Base API_PATH = "/v2/characters/%<character_id>s/assets/locations/" 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 @assets_locations ||= begin output = [] response.each do |asset_location| output << Models::AssetLocation.new(asset_location) 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 etag raise NotImplementedError end def path format(API_PATH, character_id: character_id) end end end end
Version data entries
9 entries across 9 versions & 1 rubygems