Module: CouchRestAdapter::DocumentManagement::ClassMethods

Defined in:
lib/couch_rest_adapter/document_management.rb

Instance Method Summary collapse

Instance Method Details

#namespaceObject



11
12
13
# File 'lib/couch_rest_adapter/document_management.rb', line 11

def namespace
  @_namespace ||= object_name
end

#namespace=(namespace) ⇒ Object



7
8
9
# File 'lib/couch_rest_adapter/document_management.rb', line 7

def namespace=(namespace)
  @_namespace = namespace
end

#object_nameObject



15
16
17
# File 'lib/couch_rest_adapter/document_management.rb', line 15

def object_name
  model_name.element
end