Class: Couchbase::Options::WaitUntilReady
- Inherits:
-
Object
- Object
- Couchbase::Options::WaitUntilReady
- Defined in:
- lib/couchbase/options.rb,
/home/runner/work/couchbase-ruby-client/couchbase-ruby-client/lib/couchbase/options.rb
Overview
Options for Cluster#wait_until_ready and Bucket#wait_until_ready
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(desired_state: :online, service_types: nil) {|self| ... } ⇒ WaitUntilReady
constructor
Creates an instance of options for Cluster#wait_until_ready and Bucket#wait_until_ready.
Constructor Details
#initialize(desired_state: :online, service_types: nil) {|self| ... } ⇒ WaitUntilReady
Creates an instance of options for Cluster#wait_until_ready and Bucket#wait_until_ready
2032 2033 2034 2035 2036 2037 2038 |
# File 'lib/couchbase/options.rb', line 2032 def initialize(desired_state: :online, service_types: nil) @desired_state = desired_state @service_types = service_types yield self if block_given? end |
Instance Attribute Details
#desired_state ⇒ Symbol
2019 2020 2021 |
# File 'lib/couchbase/options.rb', line 2019 def desired_state @desired_state end |
#service_types ⇒ Array<Symbol>?
2020 2021 2022 |
# File 'lib/couchbase/options.rb', line 2020 def service_types @service_types end |