Class: Rest::DesignDocument

Inherits:
Document show all
Defined in:
lib/rest/design_document.rb

Instance Attribute Summary

Attributes inherited from Resource

#connection

Instance Method Summary collapse

Methods inherited from Resource

#delete, #get, nested_resource, #nested_resource_path, #post, #put

Constructor Details

#initialize(database, name) ⇒ DesignDocument

Returns a new instance of DesignDocument.



5
6
7
# File 'lib/rest/design_document.rb', line 5

def initialize(database, name)
  super(database, "_design/#{name}")
end