Class: EveOnline::ESI::CharacterSkillQueue
- Defined in:
- lib/eve_online/esi/character_skill_queue.rb
Constant Summary collapse
- API_PATH =
"/v2/characters/%<character_id>s/skillqueue/"
Constants inherited from Base
Instance Attribute Summary collapse
-
#character_id ⇒ Object
readonly
Returns the value of attribute character_id.
Attributes inherited from Base
#_open_timeout, #_read_timeout, #_write_timeout, #adapter, #language, #middlewares, #token
Instance Method Summary collapse
-
#initialize(options) ⇒ CharacterSkillQueue
constructor
A new instance of CharacterSkillQueue.
- #path ⇒ Object
- #scope ⇒ Object
- #skills ⇒ Object
Methods inherited from Base
#add_middleware, #additional_query_params, #base_query_params, #connection, #error_limit_remain, #error_limit_reset, #http_method, #open_timeout, #open_timeout=, #page, #query, #read_timeout, #read_timeout=, #request_id, #resource, #response, #total_pages, #uri, #url, #user_agent, #write_timeout, #write_timeout=
Constructor Details
#initialize(options) ⇒ CharacterSkillQueue
Returns a new instance of CharacterSkillQueue.
10 11 12 13 14 |
# File 'lib/eve_online/esi/character_skill_queue.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_skill_queue.rb', line 8 def character_id @character_id end |
Instance Method Details
#path ⇒ Object
31 32 33 |
# File 'lib/eve_online/esi/character_skill_queue.rb', line 31 def path format(API_PATH, character_id: character_id) end |
#scope ⇒ Object
27 28 29 |
# File 'lib/eve_online/esi/character_skill_queue.rb', line 27 def scope "esi-skills.read_skillqueue.v1" end |
#skills ⇒ Object
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/eve_online/esi/character_skill_queue.rb', line 16 def skills @skills ||= begin output = [] response.each do |skill| output << Models::SkillQueueEntry.new(skill) end output end end |