Method: Aqua::Store::CouchDB::DesignDocument#initialize

Defined in:
lib/aqua/store/couch_db/design_document.rb

#initialize(hash = {}) ⇒ DesignDocument

Returns a new instance of DesignDocument.



31
32
33
34
35
# File 'lib/aqua/store/couch_db/design_document.rb', line 31

def initialize( hash={} )
  hash = Mash.new( hash ) unless hash.empty?
  self.id = hash.delete(:name) if hash[:name]
  document_initialize( hash )  # TODO: can't this just be a call to super?
end