Class: Greeve::Character::Clones

Inherits:
BaseItem
  • Object
show all
Defined in:
lib/greeve/character/clones.rb

Overview

Clones and basic attributes.

Attributes collapse

Instance Method Summary collapse

Methods inherited from BaseItem

attribute, #cache_expired?, #cached_until, endpoint, #inspect, namespace, #refresh, rowset, #to_s

Methods included from Helpers::AttributeToHash

#to_h

Constructor Details

#initialize(character_id, opts = {}) ⇒ Clones

Returns a new instance of Clones

Parameters:

  • character_id (Integer)

    EVE character ID



54
55
56
57
# File 'lib/greeve/character/clones.rb', line 54

def initialize(character_id, opts = {})
  opts[:query_params] = { "characterID" => character_id }
  super(opts)
end

Instance Method Details

#ancestryString

Returns:

  • (String)


16
# File 'lib/greeve/character/clones.rb', line 16

attribute :ancestry,            xpath:"eveapi/result/ancestry/?[0]",          type: :string

#ancestry_idInteger

Returns:

  • (Integer)


15
# File 'lib/greeve/character/clones.rb', line 15

attribute :ancestry_id,         xpath:"eveapi/result/ancestryID/?[0]",        type: :integer

#bloodlineString

Returns:

  • (String)


14
# File 'lib/greeve/character/clones.rb', line 14

attribute :bloodline,           xpath:"eveapi/result/bloodLine/?[0]",         type: :string

#bloodline_idInteger

Returns:

  • (Integer)


13
# File 'lib/greeve/character/clones.rb', line 13

attribute :bloodline_id,        xpath:"eveapi/result/bloodLineID/?[0]",       type: :integer

#clone_jump_dateTime

Returns:

  • (Time)


19
# File 'lib/greeve/character/clones.rb', line 19

attribute :clone_jump_date,     xpath:"eveapi/result/cloneJumpDate/?[0]",     type: :datetime

#dobTime

Returns:

  • (Time)


11
# File 'lib/greeve/character/clones.rb', line 11

attribute :dob,                 xpath:"eveapi/result/DoB/?[0]",               type: :datetime

#free_respecsInteger

Returns:

  • (Integer)


18
# File 'lib/greeve/character/clones.rb', line 18

attribute :free_respecs,        xpath:"eveapi/result/freeRespecs/?[0]",       type: :integer

#genderString

Returns:

  • (String)


17
# File 'lib/greeve/character/clones.rb', line 17

attribute :gender,              xpath:"eveapi/result/gender/?[0]",            type: :string

#implantsGreeve::Rowset

Parameters:

  • type_id (Integer)
  • type_name (String)

Returns:



35
36
37
38
# File 'lib/greeve/character/clones.rb', line 35

rowset :implants, xpath: "eveapi/result/rowset[@name='implants']" do
  attribute :type_id,   xpath: "@typeID",   type: :integer
  attribute :type_name, xpath: "@typeName", type: :string
end

#jump_activationTime

Returns:

  • (Time)


23
# File 'lib/greeve/character/clones.rb', line 23

attribute :jump_activation,     xpath:"eveapi/result/jumpActivation/?[0]",    type: :datetime

#jump_clone_implantsGreeve::Rowset

Parameters:

  • jump_clone_id (Integer)
  • type_id (Integer)
  • type_name (String)

Returns:



47
48
49
50
51
# File 'lib/greeve/character/clones.rb', line 47

rowset :jump_clone_implants, xpath: "eveapi/result/rowset[@name='jumpCloneImplants']" do
  attribute :jump_clone_id, xpath: "@jumpCloneID", type: :integer
  attribute :type_id,       xpath: "@typeID",      type: :integer
  attribute :type_name,     xpath: "@typeName",    type: :string
end

#jump_clonesGreeve::Rowset

Parameters:

  • jump_clone_id (Integer)
  • type_id (Integer)
  • location_id (Integer)
  • clone_name (String)

Returns:



40
41
42
43
44
45
# File 'lib/greeve/character/clones.rb', line 40

rowset :jump_clones, xpath: "eveapi/result/rowset[@name='jumpClones']" do
  attribute :jump_clone_id, xpath: "@jumpCloneID", type: :integer
  attribute :type_id,       xpath: "@typeID",      type: :integer
  attribute :location_id,   xpath: "@locationID",  type: :integer
  attribute :clone_name,    xpath: "@cloneName",   type: :string
end

#jump_fatigueTime

Returns:

  • (Time)


24
# File 'lib/greeve/character/clones.rb', line 24

attribute :jump_fatigue,        xpath:"eveapi/result/jumpFatigue/?[0]",       type: :datetime

#jump_last_updateTime

Returns:

  • (Time)


25
# File 'lib/greeve/character/clones.rb', line 25

attribute :jump_last_update,    xpath:"eveapi/result/jumpLastUpdate/?[0]",    type: :datetime

#last_respec_dateTime

Returns:

  • (Time)


20
# File 'lib/greeve/character/clones.rb', line 20

attribute :last_respec_date,    xpath:"eveapi/result/lastRespecDate/?[0]",    type: :datetime

#last_timed_respecTime

Returns:

  • (Time)


21
# File 'lib/greeve/character/clones.rb', line 21

attribute :last_timed_respec,   xpath:"eveapi/result/lastTimedRespec/?[0]",   type: :datetime

#raceString

Returns:

  • (String)


12
# File 'lib/greeve/character/clones.rb', line 12

attribute :race,                xpath:"eveapi/result/race/?[0]",              type: :string

#remote_station_dateTime

Returns:

  • (Time)


22
# File 'lib/greeve/character/clones.rb', line 22

attribute :remote_station_date, xpath:"eveapi/result/remoteStationDate/?[0]", type: :datetime