Module: Rufus::Google::EntryMixin
- Included in:
- Event
- Defined in:
- lib/rufus/google.rb
Overview
A mixin for entry based objects (like cal events for example)
Instance Attribute Summary collapse
-
#entry ⇒ Object
readonly
Returns the value of attribute entry.
Instance Method Summary collapse
- #author ⇒ Object
- #authors ⇒ Object
- #etag ⇒ Object
-
#initialize(entry) ⇒ Object
Creates a google calendar event based on the info found in an atom-tools Entry instance.
- #title ⇒ Object
Instance Attribute Details
#entry ⇒ Object (readonly)
Returns the value of attribute entry.
177 178 179 |
# File 'lib/rufus/google.rb', line 177 def entry @entry end |
Instance Method Details
#author ⇒ Object
191 192 193 |
# File 'lib/rufus/google.rb', line 191 def @entry..first end |
#authors ⇒ Object
195 196 197 |
# File 'lib/rufus/google.rb', line 195 def @entry. end |
#etag ⇒ Object
199 200 201 |
# File 'lib/rufus/google.rb', line 199 def etag @entry.extensions.attributes['gd:etag'] end |
#initialize(entry) ⇒ Object
Creates a google calendar event based on the info found in an atom-tools Entry instance.
183 184 185 |
# File 'lib/rufus/google.rb', line 183 def initialize (entry) @entry = entry end |
#title ⇒ Object
187 188 189 |
# File 'lib/rufus/google.rb', line 187 def title @entry.title.to_s end |