Sha256: 5f4ca50e23d811703f49175ea97fdd26415b071d34fb04e5ccb17e876d6772b6
Contents?: true
Size: 1.02 KB
Versions: 2
Compression:
Stored size: 1.02 KB
Contents
# frozen_string_literal: true module EveOnline module ESI class CorporationAssetsLocations < Base API_PATH = '/v2/corporations/%<corporation_id>s/assets/locations/' attr_reader :corporation_id, :item_ids def initialize(options) super @corporation_id = options.fetch(:corporation_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_corporation_assets.v1' end def roles ['Director'] end def etag raise NotImplementedError end def path format("#{ API_PATH }", corporation_id: corporation_id) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.29.0 | lib/eve_online/esi/corporation_assets_locations.rb |
eve_online-0.28.0 | lib/eve_online/esi/corporation_assets_locations.rb |