Class: EveOnline::ESI::CharacterOrders
- Inherits:
-
Base
- Object
- Base
- EveOnline::ESI::CharacterOrders
- Defined in:
- lib/eve_online/esi/character_orders.rb
Constant Summary collapse
- API_PATH =
"/v2/characters/%<character_id>s/orders/"
Instance Attribute Summary collapse
-
#character_id ⇒ Object
readonly
Returns the value of attribute character_id.
Instance Method Summary collapse
-
#initialize(options) ⇒ CharacterOrders
constructor
A new instance of CharacterOrders.
- #orders ⇒ Object
- #path ⇒ Object
- #scope ⇒ Object
Constructor Details
#initialize(options) ⇒ CharacterOrders
Returns a new instance of CharacterOrders.
10 11 12 13 14 |
# File 'lib/eve_online/esi/character_orders.rb', line 10 def initialize() super @character_id = .fetch(:character_id) end |
Instance Attribute Details
#character_id ⇒ Object (readonly)
Returns the value of attribute character_id.
8 9 10 |
# File 'lib/eve_online/esi/character_orders.rb', line 8 def character_id @character_id end |
Instance Method Details
#orders ⇒ Object
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/eve_online/esi/character_orders.rb', line 16 def orders @orders ||= begin output = [] response.each do |order| output << Models::CharacterOrder.new(order) end output end end |
#path ⇒ Object
31 32 33 |
# File 'lib/eve_online/esi/character_orders.rb', line 31 def path format(API_PATH, character_id: character_id) end |
#scope ⇒ Object
27 28 29 |
# File 'lib/eve_online/esi/character_orders.rb', line 27 def scope "esi-markets.read_character_orders.v1" end |