Sha256: f606288c657e497447ef569b92938a992f8b6fcdea15207609f1fc86961df335
Contents?: true
Size: 705 Bytes
Versions: 2
Compression:
Stored size: 705 Bytes
Contents
# frozen_string_literal: true module EveOnline module ESI class CharacterOrders < Base API_PATH = '/v2/characters/%<character_id>s/orders/' 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 path format("#{ API_PATH }", character_id: character_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/character_orders.rb |
eve_online-0.28.0 | lib/eve_online/esi/character_orders.rb |