Class: Esi::Calls::CharacterOnline

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

Overview

Get the character’s online status

Returns:

  • (Hash)
    • :online [Boolean] If the character is online

    • :last_login [String, nil] Timestamp of the last login

    • :last_logout [String, nil] Timestamp of the last logout

    • :logins [Integer, nil] Total number of times the character has logged in

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) ⇒ CharacterOnline

Returns a new instance of CharacterOnline.



19
20
21
# File 'lib/esi/calls/location.rb', line 19

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