class GoogleContactsApi::Group

Represents a single group.

Public Instance Methods

contacts(params = {}) click to toggle source

Return the contacts in this group and cache them.

# File lib/google_contacts_api/group.rb, line 17
def contacts(params = {})
  # contacts in this group
  @contacts ||= get_contacts({"group" => self.id}.merge(params))
end
contacts!(params = {}) click to toggle source

Return the contacts in this group, retrieving them again from the server.

# File lib/google_contacts_api/group.rb, line 23
def contacts!(params = {})
  # contacts in this group
  @contacts = nil
  contacts
end
system_group?() click to toggle source

Return true if this is a system group.

# File lib/google_contacts_api/group.rb, line 7
def system_group?
  !self["gContact$systemGroup"].nil?
end
system_group_id() click to toggle source
# File lib/google_contacts_api/group.rb, line 11
def system_group_id
  return unless self.system_group?
  self['gContact$systemGroup']['id']
end