Class: EveOnline::ESI::Resources::AssetsResources

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

#character(id:, page: 1) ⇒ Object

Parameters:

  • id (Integer)

    The ID of the character.

  • page (Integer) (defaults to: 1)

    Page ID. Default: 1.



9
10
11
12
13
14
15
16
# File 'lib/eve_online/esi/resources/assets_resources.rb', line 9

def character(id:, page: 1)
  response = get_request("characters/#{id}/assets",
    params: {
      page: page
    })

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