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.



264
265
266
# File 'lib/rubyrest/atom.rb', line 264

def initialize
  @collections = []
end

Instance Attribute Details

#collectionsObject (readonly)

Returns the value of attribute collections.



262
263
264
# File 'lib/rubyrest/atom.rb', line 262

def collections
  @collections
end

Instance Method Details

#add(uri, title, accept) ⇒ Object



268
269
270
271
# File 'lib/rubyrest/atom.rb', line 268

def add( uri, title, accept )
  @collections << ServiceCollection.new( uri, title, accept )
  return self
end