Class: Couchbase::Cluster::QueryWarning

Inherits:
Object
  • Object
show all
Defined in:
lib/couchbase/query_options.rb

Overview

Represents a single warning returned from the query engine.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, message) ⇒ QueryWarning

Returns a new instance of QueryWarning.



116
117
118
119
# File 'lib/couchbase/query_options.rb', line 116

def initialize(code, message)
  @code = code
  @message = message
end

Instance Attribute Details

#codeInteger

Returns:

  • (Integer)


111
112
113
# File 'lib/couchbase/query_options.rb', line 111

def code
  @code
end

#messageString

Returns:

  • (String)


114
115
116
# File 'lib/couchbase/query_options.rb', line 114

def message
  @message
end