Class: EveCrest::Response::Regions
Instance Attribute Summary
Attributes inherited from BaseResponse
#data
Instance Method Summary
collapse
#cached_until, #error_message, #initialize, #raw, #success?
Instance Method Details
#region_ids ⇒ Object
4
5
6
7
8
9
10
11
|
# File 'lib/responses/regions.rb', line 4
def region_ids
_regions = Array.new
data['items'].each do |s|
_regions.push(s['id'])
end
_regions
end
|
#region_names ⇒ Object
12
13
14
15
16
17
18
19
|
# File 'lib/responses/regions.rb', line 12
def region_names
_regions = Array.new
data['items'].each do |s|
_regions.push(s['name'])
end
_regions
end
|
#total_count ⇒ Object
20
21
22
|
# File 'lib/responses/regions.rb', line 20
def total_count
data['totalCount']
end
|