Class: Greeve::Eve::CharacterInfo
Overview
Information about the character. Has three data sets it can return
depending on the access mask.
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 = {}) ⇒ CharacterInfo
Returns a new instance of CharacterInfo
42
43
44
45
|
# File 'lib/greeve/eve/character_info.rb', line 42
def initialize(character_id, opts = {})
opts[:query_params] = { "characterID" => character_id }
super(opts)
end
|
Instance Method Details
#account_balance ⇒ BigDecimal
19
|
# File 'lib/greeve/eve/character_info.rb', line 19
attribute :account_balance, xpath: "eveapi/result/accountBalance/?[0]", type: :numeric
|
#alliance ⇒ String
29
|
# File 'lib/greeve/eve/character_info.rb', line 29
attribute :alliance, xpath: "eveapi/result/alliance/?[0]", type: :string
|
#alliance_date ⇒ Time
30
|
# File 'lib/greeve/eve/character_info.rb', line 30
attribute :alliance_date, xpath: "eveapi/result/allianceDate/?[0]", type: :datetime
|
#alliance_id ⇒ Integer
28
|
# File 'lib/greeve/eve/character_info.rb', line 28
attribute :alliance_id, xpath: "eveapi/result/allianceID/?[0]", type: :integer
|
#ancestry ⇒ String
18
|
# File 'lib/greeve/eve/character_info.rb', line 18
attribute :ancestry, xpath: "eveapi/result/ancestry/?[0]", type: :string
|
#ancestry_id ⇒ Integer
17
|
# File 'lib/greeve/eve/character_info.rb', line 17
attribute :ancestry_id, xpath: "eveapi/result/ancestryID/?[0]", type: :integer
|
#bloodline ⇒ String
16
|
# File 'lib/greeve/eve/character_info.rb', line 16
attribute :bloodline, xpath: "eveapi/result/bloodline/?[0]", type: :string
|
#bloodline_id ⇒ Integer
15
|
# File 'lib/greeve/eve/character_info.rb', line 15
attribute :bloodline_id, xpath: "eveapi/result/bloodlineID/?[0]", type: :integer
|
#character_id ⇒ Integer
12
|
# File 'lib/greeve/eve/character_info.rb', line 12
attribute :character_id, xpath: "eveapi/result/characterID/?[0]", type: :integer
|
#character_name ⇒ String
13
|
# File 'lib/greeve/eve/character_info.rb', line 13
attribute :character_name, xpath: "eveapi/result/characterName/?[0]", type: :string
|
#corporation ⇒ String
26
|
# File 'lib/greeve/eve/character_info.rb', line 26
attribute :corporation, xpath: "eveapi/result/corporation/?[0]", type: :string
|
#corporation_date ⇒ Time
27
|
# File 'lib/greeve/eve/character_info.rb', line 27
attribute :corporation_date, xpath: "eveapi/result/corporationDate/?[0]", type: :datetime
|
#corporation_id ⇒ Integer
25
|
# File 'lib/greeve/eve/character_info.rb', line 25
attribute :corporation_id, xpath: "eveapi/result/corporationID/?[0]", type: :integer
|
34
35
36
37
38
39
|
# File 'lib/greeve/eve/character_info.rb', line 34
rowset :employment_history, xpath: "eveapi/result/rowset[@name='employmentHistory']" do
attribute :record_id, xpath: "@recordID", type: :integer
attribute :corporation_id, xpath: "@corporationID", type: :integer
attribute :corporation_name, xpath: "@corporationName", type: :string
attribute :start_date, xpath: "@startDate", type: :datetime
end
|
#last_known_location ⇒ String
31
|
# File 'lib/greeve/eve/character_info.rb', line 31
attribute :last_known_location, xpath: "eveapi/result/lastKnownLocation/?[0]", type: :string
|
#next_training_ends ⇒ Time
21
|
# File 'lib/greeve/eve/character_info.rb', line 21
attribute :next_training_ends, xpath: "eveapi/result/nextTrainingEnds/?[0]", type: :datetime
|
#race ⇒ String
14
|
# File 'lib/greeve/eve/character_info.rb', line 14
attribute :race, xpath: "eveapi/result/race/?[0]", type: :string
|
#security_status ⇒ BigDecimal
32
|
# File 'lib/greeve/eve/character_info.rb', line 32
attribute :security_status, xpath: "eveapi/result/securityStatus/?[0]", type: :numeric
|
#ship_name ⇒ String
22
|
# File 'lib/greeve/eve/character_info.rb', line 22
attribute :ship_name, xpath: "eveapi/result/shipName/?[0]", type: :string
|
#ship_type_id ⇒ Integer
23
|
# File 'lib/greeve/eve/character_info.rb', line 23
attribute :ship_type_id, xpath: "eveapi/result/shipTypeID/?[0]", type: :integer
|
#ship_type_name ⇒ String
24
|
# File 'lib/greeve/eve/character_info.rb', line 24
attribute :ship_type_name, xpath: "eveapi/result/shipTypeName/?[0]", type: :string
|
#skill_points ⇒ Integer
20
|
# File 'lib/greeve/eve/character_info.rb', line 20
attribute :skill_points, xpath: "eveapi/result/skillPoints/?[0]", type: :integer
|