Class: Cql::Protocol::RowsResultResponse
- Inherits:
-
ResultResponse
- Object
- Response
- ResultResponse
- Cql::Protocol::RowsResultResponse
- Defined in:
- lib/cql/protocol/responses/rows_result_response.rb
Instance Attribute Summary collapse
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#rows ⇒ Object
readonly
Returns the value of attribute rows.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(*args) ⇒ RowsResultResponse
constructor
A new instance of RowsResultResponse.
- #to_s ⇒ Object
Methods inherited from ResultResponse
Methods included from Decoding
#read_byte!, #read_bytes!, #read_consistency!, #read_decimal!, #read_double!, #read_float!, #read_inet!, #read_int!, #read_long!, #read_long_string!, #read_option!, #read_short!, #read_short_bytes!, #read_string!, #read_string_list!, #read_string_map!, #read_string_multimap!, #read_uuid!, #read_varint!
Constructor Details
#initialize(*args) ⇒ RowsResultResponse
Returns a new instance of RowsResultResponse.
8 9 10 |
# File 'lib/cql/protocol/responses/rows_result_response.rb', line 8 def initialize(*args) @rows, @metadata = args end |
Instance Attribute Details
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
6 7 8 |
# File 'lib/cql/protocol/responses/rows_result_response.rb', line 6 def @metadata end |
#rows ⇒ Object (readonly)
Returns the value of attribute rows.
6 7 8 |
# File 'lib/cql/protocol/responses/rows_result_response.rb', line 6 def rows @rows end |
Class Method Details
.decode!(buffer) ⇒ Object
12 13 14 15 |
# File 'lib/cql/protocol/responses/rows_result_response.rb', line 12 def self.decode!(buffer) column_specs = (buffer) new(read_rows!(buffer, column_specs), column_specs) end |
Instance Method Details
#to_s ⇒ Object
17 18 19 |
# File 'lib/cql/protocol/responses/rows_result_response.rb', line 17 def to_s %(RESULT ROWS #@metadata #@rows) end |