class EveOnline::ESI::CharacterClones

Constants

API_PATH

Attributes

character_id[R]

Public Class Methods

new(options) click to toggle source
Calls superclass method EveOnline::ESI::Base::new
# File lib/eve_online/esi/character_clones.rb, line 10
def initialize(options)
  super

  @character_id = options.fetch(:character_id)
end

Public Instance Methods

home_location() click to toggle source
# File lib/eve_online/esi/character_clones.rb, line 16
def home_location
  @home_location ||= Models::HomeLocation.new(response["home_location"])
end
jump_clones() click to toggle source
# File lib/eve_online/esi/character_clones.rb, line 20
def jump_clones
  @jump_clones ||=
    begin
      output = []
      response["jump_clones"].each do |jump_clone|
        output << Models::JumpClone.new(jump_clone)
      end
      output
    end
end
last_clone_jump_date() click to toggle source
# File lib/eve_online/esi/character_clones.rb, line 31
def last_clone_jump_date
  last_clone_jump_date = response["last_clone_jump_date"]

  parse_datetime_with_timezone(last_clone_jump_date) if last_clone_jump_date
end
last_station_change_date() click to toggle source
# File lib/eve_online/esi/character_clones.rb, line 37
def last_station_change_date
  last_station_change_date = response["last_station_change_date"]

  parse_datetime_with_timezone(last_station_change_date) if last_station_change_date
end
path() click to toggle source
# File lib/eve_online/esi/character_clones.rb, line 47
def path
  format(API_PATH, character_id: character_id)
end
scope() click to toggle source
# File lib/eve_online/esi/character_clones.rb, line 43
def scope
  "esi-clones.read_clones.v1"
end