Class: Couchbase::Options::Base
- Inherits:
-
Object
- Object
- Couchbase::Options::Base
show all
- Defined in:
- lib/couchbase/options.rb,
/code/couchbase-ruby-client/lib/couchbase/options.rb
Overview
Base class for most of the options
Direct Known Subclasses
Management::Options::Analytics::ConnectLink, Management::Options::Analytics::CreateDataset, Management::Options::Analytics::CreateDataverse, Management::Options::Analytics::CreateIndex, Management::Options::Analytics::CreateLink, Management::Options::Analytics::DisconnectLink, Management::Options::Analytics::DropDataset, Management::Options::Analytics::DropDataverse, Management::Options::Analytics::DropIndex, Management::Options::Analytics::DropLink, Management::Options::Analytics::GetAllDatasets, Management::Options::Analytics::GetAllIndexes, Management::Options::Analytics::GetLinks, Management::Options::Analytics::GetPendingMutations, Management::Options::Analytics::ReplaceLink, Management::Options::Bucket::CreateBucket, Management::Options::Bucket::DropBucket, Management::Options::Bucket::FlushBucket, Management::Options::Bucket::GetAllBuckets, Management::Options::Bucket::GetBucket, Management::Options::Bucket::UpdateBucket, Management::Options::Collection::CreateCollection, Management::Options::Collection::CreateScope, Management::Options::Collection::DropCollection, Management::Options::Collection::DropScope, Management::Options::Collection::GetAllScopes, Management::Options::Collection::UpdateCollection, Management::Options::Query::BuildDeferredIndexes, Management::Options::Query::CreateIndex, Management::Options::Query::CreatePrimaryIndex, Management::Options::Query::DropIndex, Management::Options::Query::DropPrimaryIndex, Management::Options::Query::GetAllIndexes, Management::Options::Query::WatchIndexes, Analytics, Append, Decrement, Exists, Get, GetAllReplicas, GetAndLock, GetAndTouch, GetAnyReplica, GetMulti, Increment, Insert, LookupIn, LookupInAllReplicas, LookupInAnyReplica, MutateIn, Prepend, Query, Remove, RemoveMulti, Replace, Scan, Search, Touch, Unlock, Upsert, UpsertMulti, View
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(timeout: nil, retry_strategy: nil, client_context: nil, parent_span: nil) {|| ... } ⇒ Base
Returns a new instance of Base.
37
38
39
40
41
42
43
44
45
46
|
# File 'lib/couchbase/options.rb', line 37
def initialize(timeout: nil,
retry_strategy: nil,
client_context: nil,
parent_span: nil)
@timeout = timeout
@retry_strategy = retry_strategy
@client_context = client_context
@parent_span = parent_span
yield self if block_given?
end
|
Instance Attribute Details
#client_context ⇒ Hash?
28
29
30
|
# File 'lib/couchbase/options.rb', line 28
def client_context
@client_context
end
|
#parent_span ⇒ Span?
29
30
31
|
# File 'lib/couchbase/options.rb', line 29
def parent_span
@parent_span
end
|
#retry_strategy ⇒ Proc?
27
28
29
|
# File 'lib/couchbase/options.rb', line 27
def retry_strategy
@retry_strategy
end
|
#timeout ⇒ Integer, ...
26
27
28
|
# File 'lib/couchbase/options.rb', line 26
def timeout
@timeout
end
|