Module: CouchbaseOrm::PropertiesAlwaysExistsInDocument

Included in:
Base
Defined in:
lib/couchbase-orm/utilities/properties_always_exists_in_document.rb

Constant Summary collapse

DEFAULT_VALUE =
false

Instance Method Summary collapse

Instance Method Details

#properties_always_exists_in_documentObject



12
13
14
# File 'lib/couchbase-orm/utilities/properties_always_exists_in_document.rb', line 12

def properties_always_exists_in_document
    @properties_always_exists_in_document ||= DEFAULT_VALUE
end

#properties_always_exists_in_document=(value) ⇒ Object



5
6
7
8
9
10
# File 'lib/couchbase-orm/utilities/properties_always_exists_in_document.rb', line 5

def properties_always_exists_in_document=(value)
    unless [true, false].include? value
        raise ArgumentError.new("properties_always_exists_in_document must be a boolean")
    end
    @properties_always_exists_in_document = value
end