Class: EveOnline::ESI::Models::System
- Inherits:
-
Base
- Object
- Base
- EveOnline::ESI::Models::System
show all
- Defined in:
- lib/eve_online/esi/models/system.rb
Instance Attribute Summary
Attributes inherited from Base
#options
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#as_json ⇒ Object
7
8
9
10
11
12
13
14
15
16
|
# File 'lib/eve_online/esi/models/system.rb', line 7
def as_json
{
constellation_id: constellation_id,
name: name,
security_class: security_class,
security_status: security_status,
star_id: star_id,
system_id: system_id
}
end
|
#constellation_id ⇒ Object
18
19
20
|
# File 'lib/eve_online/esi/models/system.rb', line 18
def constellation_id
options["constellation_id"]
end
|
#name ⇒ Object
22
23
24
|
# File 'lib/eve_online/esi/models/system.rb', line 22
def name
options["name"]
end
|
#planets ⇒ Object
46
47
48
|
# File 'lib/eve_online/esi/models/system.rb', line 46
def planets
@planets ||= Planets.new(options.fetch("planets", [])).planets
end
|
#position ⇒ Object
42
43
44
|
# File 'lib/eve_online/esi/models/system.rb', line 42
def position
@position ||= Position.new(options["position"])
end
|
#security_class ⇒ Object
26
27
28
|
# File 'lib/eve_online/esi/models/system.rb', line 26
def security_class
options["security_class"]
end
|
#security_status ⇒ Object
30
31
32
|
# File 'lib/eve_online/esi/models/system.rb', line 30
def security_status
options["security_status"]
end
|
#star_id ⇒ Object
34
35
36
|
# File 'lib/eve_online/esi/models/system.rb', line 34
def star_id
options["star_id"]
end
|
#stargate_ids ⇒ Object
50
51
52
|
# File 'lib/eve_online/esi/models/system.rb', line 50
def stargate_ids
options.fetch("stargates", [])
end
|
#station_ids ⇒ Object
54
55
56
|
# File 'lib/eve_online/esi/models/system.rb', line 54
def station_ids
options.fetch("stations", [])
end
|
#system_id ⇒ Object
38
39
40
|
# File 'lib/eve_online/esi/models/system.rb', line 38
def system_id
options["system_id"]
end
|