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

Instance Method Summary collapse

Instance Attribute Details

#entryObject (readonly)

Returns the value of attribute entry.



177
178
179
# File 'lib/rufus/google.rb', line 177

def entry
  @entry
end

Instance Method Details

#authorObject



191
192
193
# File 'lib/rufus/google.rb', line 191

def author
  @entry.authors.first
end

#authorsObject



195
196
197
# File 'lib/rufus/google.rb', line 195

def authors
  @entry.authors
end

#etagObject



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

#titleObject



187
188
189
# File 'lib/rufus/google.rb', line 187

def title
  @entry.title.to_s
end