Class: GCal::Feed
- Inherits:
-
GData::Feed
- Object
- GData::Feed
- GCal::Feed
- Defined in:
- lib/gdata/calendar.rb
Instance Attribute Summary collapse
-
#magic_cookie ⇒ Object
readonly
Returns the value of attribute magic_cookie.
-
#projection ⇒ Object
readonly
Returns the value of attribute projection.
-
#user_id ⇒ Object
readonly
Returns the value of attribute user_id.
-
#visibility ⇒ Object
readonly
Returns the value of attribute visibility.
Instance Method Summary collapse
-
#initialize(options) ⇒ Feed
constructor
:magic_cookie => …
Constructor Details
#initialize(options) ⇒ Feed
:magic_cookie => … :project => one of :full, :basic :visibility => :private, :public, “magic-cookie” :projection => :full, :full_noattendees, :composite, :attendees_only, :free_busy, :basic :user_id => :default, “[email protected]”
21 22 23 24 25 26 27 28 29 30 |
# File 'lib/gdata/calendar.rb', line 21 def initialize() @magic_cookie = .delete(:magic_cookie) @visibility = @magic_cookie && ![:visiblity] \ ? :private \ : .delete(:visibility) || :public @projection = .delete(:projection) || :full @user_id = .delete(:user_id) raise ArgumentError, "User ID has to be specified for calendar feed" unless user_id end |
Instance Attribute Details
#magic_cookie ⇒ Object (readonly)
Returns the value of attribute magic_cookie.
14 15 16 |
# File 'lib/gdata/calendar.rb', line 14 def @magic_cookie end |
#projection ⇒ Object (readonly)
Returns the value of attribute projection.
15 16 17 |
# File 'lib/gdata/calendar.rb', line 15 def projection @projection end |
#user_id ⇒ Object (readonly)
Returns the value of attribute user_id.
14 15 16 |
# File 'lib/gdata/calendar.rb', line 14 def user_id @user_id end |
#visibility ⇒ Object (readonly)
Returns the value of attribute visibility.
15 16 17 |
# File 'lib/gdata/calendar.rb', line 15 def visibility @visibility end |