Class: Couchbase::Options::Ping
- Inherits:
-
Object
- Object
- Couchbase::Options::Ping
- Defined in:
- lib/couchbase/options.rb,
/home/runner/work/couchbase-ruby-client/couchbase-ruby-client/lib/couchbase/options.rb
Overview
Options for Bucket#ping
Instance Attribute Summary collapse
- #parent_span ⇒ Span?
- #report_id ⇒ String
- #service_types ⇒ Array<Symbol>
- #timeout ⇒ Integer, #in_milliseconds
Instance Method Summary collapse
-
#initialize(report_id: nil, service_types: [:kv, :query, :analytics, :search, :views, :management], timeout: nil, parent_span: nil) {|self| ... } ⇒ Ping
constructor
Creates an instance of options for Bucket#ping.
Constructor Details
#initialize(report_id: nil, service_types: [:kv, :query, :analytics, :search, :views, :management], timeout: nil, parent_span: nil) {|self| ... } ⇒ Ping
Creates an instance of options for Bucket#ping
1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 |
# File 'lib/couchbase/options.rb', line 1932 def initialize(report_id: nil, service_types: [:kv, :query, :analytics, :search, :views, :management], timeout: nil, parent_span: nil) @report_id = report_id @service_types = service_types @timeout = timeout @parent_span = parent_span yield self if block_given? end |
Instance Attribute Details
#parent_span ⇒ Span?
1922 1923 1924 |
# File 'lib/couchbase/options.rb', line 1922 def parent_span @parent_span end |
#report_id ⇒ String
1919 1920 1921 |
# File 'lib/couchbase/options.rb', line 1919 def report_id @report_id end |
#service_types ⇒ Array<Symbol>
1920 1921 1922 |
# File 'lib/couchbase/options.rb', line 1920 def service_types @service_types end |
#timeout ⇒ Integer, #in_milliseconds
1921 1922 1923 |
# File 'lib/couchbase/options.rb', line 1921 def timeout @timeout end |