Sha256: ea7c7e7f563dc29e975e9b6e2b4cd042356189ebdb626d6e5e977ca056749137
Contents?: true
Size: 864 Bytes
Versions: 1
Compression:
Stored size: 864 Bytes
Contents
module GoogleContactsApi class User include GoogleContactsApi::Contacts include GoogleContactsApi::Groups attr_reader :api def initialize(oauth) @api = GoogleContactsApi::Api.new(oauth) end # Return the contacts for this user and cache them. def contacts(params = {}) # contacts in this group @contacts ||= get_contacts(params) end # Return the contacts for this user, retrieving them again from the server. def contacts!(params = {}) # contacts in this group @contacts = nil contacts end # Return the groups for this user and cache them. def groups(params = {}) @groups ||= get_groups(params) end # Return the groups for this user, retrieving them again from the server. def groups!(params = {}) @groups = nil groups end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
google_contacts_api-0.5.0 | lib/google_contacts_api/user.rb |