Sha256: 6ec5514642ce8b6fae41a25ea93002fa0fd09451b78e54eda3583c6e1d2d2b50
Contents?: true
Size: 730 Bytes
Versions: 3
Compression:
Stored size: 730 Bytes
Contents
# frozen_string_literal: true module EveOnline module ESI class CharacterOrders < Base API_ENDPOINT = 'https://esi.evetech.net/v2/characters/%<character_id>s/orders/?datasource=%<datasource>s' attr_reader :character_id def initialize(options) super @character_id = options.fetch(:character_id) end def orders output = [] response.each do |order| output << Models::CharacterOrder.new(order) end output end memoize :orders def scope 'esi-markets.read_character_orders.v1' end def url format(API_ENDPOINT, character_id: character_id, datasource: datasource) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.20.0 | lib/eve_online/esi/character_orders.rb |
eve_online-0.19.0 | lib/eve_online/esi/character_orders.rb |
eve_online-0.18.0 | lib/eve_online/esi/character_orders.rb |