Module: RubyRest::Atom::Entry

Defined in:
lib/rubyrest/atom.rb

Overview

This module provides some default, arbitrary implementations for methods required by RubyRest in order to provide an Atom Entry representation out of a domain object.

Developpers can choose whether to use this implementation or to provide their own.

Defined Under Namespace

Classes: Document

Instance Method Summary collapse

Instance Method Details

#atom_authorObject

Not a very relevant buy necessary information



153
154
155
# File 'lib/rubyrest/atom.rb', line 153

def atom_author
  self.createdby
end

#atom_idObject

Returns the generated token



143
144
145
# File 'lib/rubyrest/atom.rb', line 143

def atom_id
  self.id
end

#atom_summaryObject

Returns the Atom Entry Summary. Synonym of atom_title



138
139
140
# File 'lib/rubyrest/atom.rb', line 138

def atom_summary
  atom_title
end

#atom_titleObject

Returns the Atom Entry title



133
134
135
# File 'lib/rubyrest/atom.rb', line 133

def atom_title
  self.name
end

#atom_updatedObject

Returns Time.now



148
149
150
# File 'lib/rubyrest/atom.rb', line 148

def atom_updated
  self.updated
end