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
1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 |
# File 'lib/couchbase/options.rb', line 1992 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?
1982 1983 1984 |
# File 'lib/couchbase/options.rb', line 1982 def parent_span @parent_span end |
#report_id ⇒ String
1979 1980 1981 |
# File 'lib/couchbase/options.rb', line 1979 def report_id @report_id end |
#service_types ⇒ Array<Symbol>
1980 1981 1982 |
# File 'lib/couchbase/options.rb', line 1980 def service_types @service_types end |
#timeout ⇒ Integer, #in_milliseconds
1981 1982 1983 |
# File 'lib/couchbase/options.rb', line 1981 def timeout @timeout end |