Class: EveCrest::Response::Opportunities::Groups
Instance Attribute Summary
Attributes inherited from BaseResponse
#data
Instance Method Summary
collapse
#cached_until, #error_message, #initialize, #raw, #success?
Instance Method Details
#count ⇒ Object
19
20
21
|
# File 'lib/responses/opportunities/groups.rb', line 19
def count
data['totalCount']
end
|
#ids ⇒ Object
5
6
7
8
9
10
11
|
# File 'lib/responses/opportunities/groups.rb', line 5
def ids
_ids = Array.new
data['items'].each do |i|
_ids.push(i['id'])
end
_ids
end
|
#names ⇒ Object
12
13
14
15
16
17
18
|
# File 'lib/responses/opportunities/groups.rb', line 12
def names
_names = Array.new
data['items'].each do |i|
_names.push(i['name'])
end
_names
end
|