Class: Greeve::Character::Clones
Overview
Clones and basic attributes.
Instance Method Summary
collapse
Methods inherited from BaseItem
attribute, #cache_expired?, #cached_until, endpoint, #inspect, namespace, #refresh, rowset, #to_s
#to_h
Constructor Details
#initialize(character_id, opts = {}) ⇒ Clones
Returns a new instance of Clones
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
#ancestry ⇒ String
16
|
# File 'lib/greeve/character/clones.rb', line 16
attribute :ancestry, xpath:"eveapi/result/ancestry/?[0]", type: :string
|
#ancestry_id ⇒ Integer
15
|
# File 'lib/greeve/character/clones.rb', line 15
attribute :ancestry_id, xpath:"eveapi/result/ancestryID/?[0]", type: :integer
|
#bloodline ⇒ String
14
|
# File 'lib/greeve/character/clones.rb', line 14
attribute :bloodline, xpath:"eveapi/result/bloodLine/?[0]", type: :string
|
#bloodline_id ⇒ Integer
13
|
# File 'lib/greeve/character/clones.rb', line 13
attribute :bloodline_id, xpath:"eveapi/result/bloodLineID/?[0]", type: :integer
|
#clone_jump_date ⇒ Time
19
|
# File 'lib/greeve/character/clones.rb', line 19
attribute :clone_jump_date, xpath:"eveapi/result/cloneJumpDate/?[0]", type: :datetime
|
#dob ⇒ Time
11
|
# File 'lib/greeve/character/clones.rb', line 11
attribute :dob, xpath:"eveapi/result/DoB/?[0]", type: :datetime
|
#free_respecs ⇒ Integer
18
|
# File 'lib/greeve/character/clones.rb', line 18
attribute :free_respecs, xpath:"eveapi/result/freeRespecs/?[0]", type: :integer
|
#gender ⇒ String
17
|
# File 'lib/greeve/character/clones.rb', line 17
attribute :gender, xpath:"eveapi/result/gender/?[0]", type: :string
|
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_activation ⇒ Time
23
|
# File 'lib/greeve/character/clones.rb', line 23
attribute :jump_activation, xpath:"eveapi/result/jumpActivation/?[0]", type: :datetime
|
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
|
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_fatigue ⇒ Time
24
|
# File 'lib/greeve/character/clones.rb', line 24
attribute :jump_fatigue, xpath:"eveapi/result/jumpFatigue/?[0]", type: :datetime
|
#jump_last_update ⇒ Time
25
|
# File 'lib/greeve/character/clones.rb', line 25
attribute :jump_last_update, xpath:"eveapi/result/jumpLastUpdate/?[0]", type: :datetime
|
#last_respec_date ⇒ Time
20
|
# File 'lib/greeve/character/clones.rb', line 20
attribute :last_respec_date, xpath:"eveapi/result/lastRespecDate/?[0]", type: :datetime
|
#last_timed_respec ⇒ Time
21
|
# File 'lib/greeve/character/clones.rb', line 21
attribute :last_timed_respec, xpath:"eveapi/result/lastTimedRespec/?[0]", type: :datetime
|
#race ⇒ String
12
|
# File 'lib/greeve/character/clones.rb', line 12
attribute :race, xpath:"eveapi/result/race/?[0]", type: :string
|
#remote_station_date ⇒ Time
22
|
# File 'lib/greeve/character/clones.rb', line 22
attribute :remote_station_date, xpath:"eveapi/result/remoteStationDate/?[0]", type: :datetime
|