Class: GoogleContactsApi::GroupSet
- 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
-
#initialize(response_body, api = nil) ⇒ GroupSet
constructor
Populate from a response that contains contacts.
Methods inherited from ResultSet
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 |