Class: Cql::Client::VoidResult
- Inherits:
-
Object
- Object
- Cql::Client::VoidResult
- Includes:
- Enumerable
- Defined in:
- lib/cql/client/void_result.rb
Constant Summary collapse
- INSTANCE =
self.new
Instance Attribute Summary collapse
- #metadata ⇒ ResultMetadata readonly
-
#trace_id ⇒ Cql::Uuid
readonly
The ID of the query trace associated with the query, if any.
Instance Method Summary collapse
-
#each(&block) ⇒ Enumerable
(also: #each_row)
No-op for API compatibility with QueryResult.
-
#empty? ⇒ Boolean
Always returns true.
-
#initialize(trace_id = nil) ⇒ VoidResult
constructor
A new instance of VoidResult.
Constructor Details
#initialize(trace_id = nil) ⇒ VoidResult
Returns a new instance of VoidResult.
19 20 21 22 |
# File 'lib/cql/client/void_result.rb', line 19 def initialize(trace_id=nil) @trace_id = trace_id = EMPTY_METADATA end |
Instance Attribute Details
#metadata ⇒ ResultMetadata (readonly)
11 12 13 |
# File 'lib/cql/client/void_result.rb', line 11 def end |
#trace_id ⇒ Cql::Uuid (readonly)
The ID of the query trace associated with the query, if any.
16 17 18 |
# File 'lib/cql/client/void_result.rb', line 16 def trace_id @trace_id end |
Instance Method Details
#each(&block) ⇒ Enumerable Also known as: each_row
No-op for API compatibility with QueryResult.
32 33 34 |
# File 'lib/cql/client/void_result.rb', line 32 def each(&block) self end |
#empty? ⇒ Boolean
Always returns true
25 26 27 |
# File 'lib/cql/client/void_result.rb', line 25 def empty? true end |