Class: Cql::Protocol::SetKeyspaceResultResponse
- Inherits:
-
ResultResponse
- Object
- Response
- ResultResponse
- Cql::Protocol::SetKeyspaceResultResponse
- Defined in:
- lib/cql/protocol/responses/set_keyspace_result_response.rb
Instance Attribute Summary collapse
-
#keyspace ⇒ Object
readonly
Returns the value of attribute keyspace.
Attributes inherited from ResultResponse
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(keyspace, trace_id) ⇒ SetKeyspaceResultResponse
constructor
A new instance of SetKeyspaceResultResponse.
- #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(keyspace, trace_id) ⇒ SetKeyspaceResultResponse
Returns a new instance of SetKeyspaceResultResponse.
8 9 10 11 |
# File 'lib/cql/protocol/responses/set_keyspace_result_response.rb', line 8 def initialize(keyspace, trace_id) super(trace_id) @keyspace = keyspace end |
Instance Attribute Details
#keyspace ⇒ Object (readonly)
Returns the value of attribute keyspace.
6 7 8 |
# File 'lib/cql/protocol/responses/set_keyspace_result_response.rb', line 6 def keyspace @keyspace end |
Class Method Details
.decode!(buffer, trace_id = nil) ⇒ Object
13 14 15 |
# File 'lib/cql/protocol/responses/set_keyspace_result_response.rb', line 13 def self.decode!(buffer, trace_id=nil) new(read_string!(buffer), trace_id) end |
Instance Method Details
#to_s ⇒ Object
17 18 19 |
# File 'lib/cql/protocol/responses/set_keyspace_result_response.rb', line 17 def to_s %(RESULT SET_KEYSPACE "#@keyspace") end |