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
-
#atom_author ⇒ Object
Not a very relevant buy necessary information.
-
#atom_id ⇒ Object
Returns the generated token.
-
#atom_summary ⇒ Object
Returns the Atom Entry Summary.
-
#atom_title ⇒ Object
Returns the Atom Entry title.
-
#atom_updated ⇒ Object
Returns Time.now.
Instance Method Details
#atom_author ⇒ Object
Not a very relevant buy necessary information
153 154 155 |
# File 'lib/rubyrest/atom.rb', line 153 def self.createdby end |
#atom_id ⇒ Object
Returns the generated token
143 144 145 |
# File 'lib/rubyrest/atom.rb', line 143 def atom_id self.id end |
#atom_summary ⇒ Object
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_title ⇒ Object
Returns the Atom Entry title
133 134 135 |
# File 'lib/rubyrest/atom.rb', line 133 def atom_title self.name end |
#atom_updated ⇒ Object
Returns Time.now
148 149 150 |
# File 'lib/rubyrest/atom.rb', line 148 def atom_updated self.updated end |