Sha256: 2811ece27b8a9dc0a42e1ae5810c5aebd5c5935b280f0a101eea92e6ddcfbaeb
Contents?: true
Size: 767 Bytes
Versions: 4
Compression:
Stored size: 767 Bytes
Contents
# frozen_string_literal: true module EveOnline module ESI class CharacterOrders < Base API_PATH = '/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 @orders ||= begin output = [] response.each do |order| output << Models::CharacterOrder.new(order) end output end end def scope 'esi-markets.read_character_orders.v1' end def url format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems