Class: GContacts::Feed

Inherits:
GData::Feed
  • Object
show all
Defined in:
lib/gdata/contacts.rb

Constant Summary collapse

CLIENT_LOGIN_URL =
"https://www.google.com/accounts/ClientLogin"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Feed

:projection => one of :full, :thin, :property_key :user_id => :default, “[email protected]

Raises:

  • (ArgumentError)


26
27
28
29
30
# File 'lib/gdata/contacts.rb', line 26

def initialize(options)
  @projection = options.delete(:projection) || :full
  @user_id = options.delete(:user_id)
  raise ArgumentError, "User ID has to be specified for calendar feed" unless user_id
end

Instance Attribute Details

#projectionObject (readonly)

Returns the value of attribute projection.



23
24
25
# File 'lib/gdata/contacts.rb', line 23

def projection
  @projection
end

#user_idObject (readonly)

Returns the value of attribute user_id.



22
23
24
# File 'lib/gdata/contacts.rb', line 22

def user_id
  @user_id
end