Class: RubyRest::Atom::ServiceDocument
- Inherits:
-
Object
- Object
- RubyRest::Atom::ServiceDocument
- Defined in:
- lib/rubyrest/atom.rb
Overview
Superclass provided by the framework, so that it’s easy to identify resources to be formatted as service document entries
Instance Attribute Summary collapse
-
#collections ⇒ Object
readonly
Returns the value of attribute collections.
Instance Method Summary collapse
- #add(uri, title, accept) ⇒ Object
-
#initialize ⇒ ServiceDocument
constructor
A new instance of ServiceDocument.
Constructor Details
#initialize ⇒ ServiceDocument
Returns a new instance of ServiceDocument.
296 297 298 |
# File 'lib/rubyrest/atom.rb', line 296 def initialize @collections = [] end |
Instance Attribute Details
#collections ⇒ Object (readonly)
Returns the value of attribute collections.
294 295 296 |
# File 'lib/rubyrest/atom.rb', line 294 def collections @collections end |
Instance Method Details
#add(uri, title, accept) ⇒ Object
300 301 302 303 |
# File 'lib/rubyrest/atom.rb', line 300 def add( uri, title, accept ) @collections << ServiceCollection.new( uri, title, accept ) return self end |