Sha256: 1e0356f6ff6c481dcba026a9a3f25da620cdcaafa18441f627452a1020a7fc87

Contents?: true

Size: 295 Bytes

Versions: 8

Compression:

Stored size: 295 Bytes

Contents

module GoogleContactsApi
  class ContactSet < GoogleContactsApi::ResultSet
    # Populate from a response that contains contacts
    def initialize(response_body, api = nil)
      super
      @results = @parsed.feed.entry.map { |e| GoogleContactsApi::Contact.new(e, nil, api) }
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
google_contacts_api-0.2.7 lib/google_contacts_api/contact_set.rb
google_contacts_api-0.2.6 lib/google_contacts_api/contact_set.rb
google_contacts_api-0.2.5 lib/google_contacts_api/contact_set.rb
google_contacts_api-0.2.4 lib/google_contacts_api/contact_set.rb
google_contacts_api-0.2.3 lib/google_contacts_api/contact_set.rb
google_contacts_api-0.2.2 lib/google_contacts_api/contact_set.rb
google_contacts_api-0.2.1 lib/google_contacts_api/contact_set.rb
google_contacts_api-0.2.0 lib/google_contacts_api/contact_set.rb