class EveOnline::ESI::CharacterSkills
Constants
- API_PATH
Attributes
character_id[R]
Public Class Methods
new(options)
click to toggle source
Calls superclass method
EveOnline::ESI::Base::new
# File lib/eve_online/esi/character_skills.rb, line 10 def initialize(options) super @character_id = options.fetch(:character_id) end
Public Instance Methods
as_json()
click to toggle source
# File lib/eve_online/esi/character_skills.rb, line 16 def as_json { total_sp: total_sp, unallocated_sp: unallocated_sp } end
path()
click to toggle source
# File lib/eve_online/esi/character_skills.rb, line 46 def path format(API_PATH, character_id: character_id) end
scope()
click to toggle source
# File lib/eve_online/esi/character_skills.rb, line 42 def scope "esi-skills.read_skills.v1" end
skills()
click to toggle source
# File lib/eve_online/esi/character_skills.rb, line 23 def skills @skills ||= begin output = [] response.fetch("skills").each do |skill| output << Models::Skill.new(skill) end output end end
total_sp()
click to toggle source
# File lib/eve_online/esi/character_skills.rb, line 34 def total_sp response["total_sp"] end
unallocated_sp()
click to toggle source
# File lib/eve_online/esi/character_skills.rb, line 38 def unallocated_sp response["unallocated_sp"] end