Class: RubyRest::Atom::ServiceDocument

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeServiceDocument

Returns a new instance of ServiceDocument.



296
297
298
# File 'lib/rubyrest/atom.rb', line 296

def initialize
  @collections = []
end

Instance Attribute Details

#collectionsObject (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