Sha256: bfc48d82def0b13be3f28d7f4ea71eac1b16ce999997d911cd92ccd273e71db8

Contents?: true

Size: 526 Bytes

Versions: 5

Compression:

Stored size: 526 Bytes

Contents

module CouchbaseOrm
    module PropertiesAlwaysExistsInDocument

        DEFAULT_VALUE = false
        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

        def properties_always_exists_in_document
            @properties_always_exists_in_document ||= DEFAULT_VALUE
        end
    end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
couchbase-orm-2.0.4 lib/couchbase-orm/utilities/properties_always_exists_in_document.rb
couchbase-orm-2.0.3 lib/couchbase-orm/utilities/properties_always_exists_in_document.rb
couchbase-orm-2.0.2 lib/couchbase-orm/utilities/properties_always_exists_in_document.rb
couchbase-orm-2.0.1 lib/couchbase-orm/utilities/properties_always_exists_in_document.rb
couchbase-orm-2.0.0 lib/couchbase-orm/utilities/properties_always_exists_in_document.rb