Class: EveOnline::ESI::Resources::SkillsResources

Inherits:
Resource
  • Object
show all
Defined in:
lib/eve_online/esi/resources/skills_resources.rb

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#default_headers, #get_request, #initialize, #post_request, #user_agent

Constructor Details

This class inherits a constructor from EveOnline::ESI::Resources::Resource

Instance Method Details

#attributes(id:) ⇒ Object

Parameters:

  • id (Integer)

    The ID of the character



8
9
10
11
12
# File 'lib/eve_online/esi/resources/skills_resources.rb', line 8

def attributes(id:)
  response = get_request("characters/#{id}/attributes")

  Models::Attributes.new(attributes: response.body, headers: response.headers)
end

#skillqueue(id:) ⇒ Object

Parameters:

  • id (Integer)

    The ID of the character



15
16
17
18
19
# File 'lib/eve_online/esi/resources/skills_resources.rb', line 15

def skillqueue(id:)
  response = get_request("characters/#{id}/skillqueue")

  Collection.from_response(response, type: Models::SkillQueueEntry)
end

#skills(id:) ⇒ Object

Parameters:

  • id (Integer)

    The ID of the character



22
23
24
25
26
# File 'lib/eve_online/esi/resources/skills_resources.rb', line 22

def skills(id:)
  response = get_request("characters/#{id}/skills")

  Models::Skills.new(attributes: response.body, headers: response.headers)
end