Class: GoogleContactsApi::GroupSet

Inherits:
ResultSet
  • Object
show all
Defined in:
lib/google_contacts_api/group_set.rb

Instance Attribute Summary

Attributes inherited from ResultSet

#api, #items_per_page, #parsed, #start_index, #total_results

Instance Method Summary collapse

Methods inherited from ResultSet

#each, #has_more?, #inspect

Constructor Details

#initialize(response_body, api = nil) ⇒ GroupSet

Populate from a response that contains contacts



4
5
6
7
# File 'lib/google_contacts_api/group_set.rb', line 4

def initialize(response_body, api = nil)
  super
  @results = @parsed.feed.entry.map { |e| GoogleContactsApi::Group.new(e, nil, api) }
end