Class: EveOnline::ESI::Resources::ClonesResources

Inherits:
Resource
  • Object
show all
Defined in:
lib/eve_online/esi/resources/clones_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

#clones(id:) ⇒ Object

Parameters:

  • id (Integer)

    The ID of the character



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

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

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

#implants(id:) ⇒ Object

Parameters:

  • id (Integer)

    The ID of the character



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

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

  Models::Implants.new(body: response.body, headers: response.headers)
end