Class: EveCrest::Response::Constellation
Instance Attribute Summary
Attributes inherited from BaseResponse
#data
Instance Method Summary
collapse
#cached_until, #error_message, #initialize, #raw, #success?
Instance Method Details
#name ⇒ Object
18
19
20
|
# File 'lib/responses/constellation.rb', line 18
def name
data['name']
end
|
#position ⇒ Object
7
8
9
|
# File 'lib/responses/constellation.rb', line 7
def position
data['position']
end
|
#region ⇒ Object
4
5
6
|
# File 'lib/responses/constellation.rb', line 4
def region
data['region'].to_s.split('/')[4].to_i
end
|
#systems ⇒ Object
10
11
12
13
14
15
16
17
|
# File 'lib/responses/constellation.rb', line 10
def systems
_systems = Array.new
data['systems'].each do |s|
_systems.push(s['id'])
end
_systems
end
|