Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/couchbase/binary_collection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def initialize(collection)
# collection.get("mydoc", Options::Get(transcoder: nil)).content #=> "foobar"
#
# @return [Collection::MutationResult]
def append(id, content, options = Options::Append.new)
def append(id, content, options = Options::Append::DEFAULT)
resp = @backend.document_append(@collection.bucket_name, @collection.scope_name, @collection.name,
id, content, options.to_backend)
Collection::MutationResult.new do |res|
Expand All @@ -59,7 +59,7 @@ def append(id, content, options = Options::Append.new)
# collection.get("mydoc", Options::Get(transcoder: nil)).content #=> "barfoo"
#
# @return [Collection::MutationResult]
def prepend(id, content, options = Options::Prepend.new)
def prepend(id, content, options = Options::Prepend::DEFAULT)
resp = @backend.document_prepend(@collection.bucket_name, @collection.scope_name, @collection.name,
id, content, options.to_backend)
Collection::MutationResult.new do |res|
Expand All @@ -80,7 +80,7 @@ def prepend(id, content, options = Options::Prepend.new)
# res.content #=> 10
#
# @return [CounterResult]
def increment(id, options = Options::Increment.new)
def increment(id, options = Options::Increment::DEFAULT)
resp = @backend.document_increment(@collection.bucket_name, @collection.scope_name, @collection.name, id,
options.to_backend)
CounterResult.new do |res|
Expand All @@ -102,7 +102,7 @@ def increment(id, options = Options::Increment.new)
# res.value #=> 98
#
# @return [CounterResult]
def decrement(id, options = Options::Decrement.new)
def decrement(id, options = Options::Decrement::DEFAULT)
resp = @backend.document_decrement(@collection.bucket_name, @collection.scope_name, @collection.name, id,
options.to_backend)
CounterResult.new do |res|
Expand Down