Class: Esi::Calls::CharacterShip

Inherits:
Base
  • Object
show all
Defined in:
lib/esi/calls/location.rb

Overview

Get the character’s active ship

Returns:

  • (Hash)
    • :ship_item_id [Integer]

    • :ship_type_id [Integer]

    • :ship_name [String]

See Also:

Constant Summary

Constants inherited from Base

Base::CACHE_NAMESPACE

Instance Attribute Summary

Attributes inherited from Base

#params, #path

Instance Method Summary collapse

Methods inherited from Base

#cache_key, #method, #page, #page=, #paginated?, #url

Constructor Details

#initialize(character_id) ⇒ CharacterShip

Returns a new instance of CharacterShip.



55
56
57
# File 'lib/esi/calls/location.rb', line 55

def initialize(character_id)
  @path = "/characters/#{character_id}/ship"
end