Class: Cql::Protocol::ResponseFrame::FrameHeaders
- Inherits:
-
Object
- Object
- Cql::Protocol::ResponseFrame::FrameHeaders
- Defined in:
- lib/cql/protocol/response_frame.rb
Instance Attribute Summary collapse
-
#buffer ⇒ Object
readonly
Returns the value of attribute buffer.
-
#length ⇒ Object
readonly
Returns the value of attribute length.
-
#opcode ⇒ Object
readonly
Returns the value of attribute opcode.
-
#protocol_version ⇒ Object
readonly
Returns the value of attribute protocol_version.
-
#stream_id ⇒ Object
readonly
Returns the value of attribute stream_id.
Instance Method Summary collapse
- #<<(str) ⇒ Object
- #complete? ⇒ Boolean
-
#initialize(buffer) ⇒ FrameHeaders
constructor
A new instance of FrameHeaders.
Constructor Details
#initialize(buffer) ⇒ FrameHeaders
Returns a new instance of FrameHeaders.
67 68 69 70 |
# File 'lib/cql/protocol/response_frame.rb', line 67 def initialize(buffer) @buffer = buffer check_complete! end |
Instance Attribute Details
#buffer ⇒ Object (readonly)
Returns the value of attribute buffer.
65 66 67 |
# File 'lib/cql/protocol/response_frame.rb', line 65 def buffer @buffer end |
#length ⇒ Object (readonly)
Returns the value of attribute length.
65 66 67 |
# File 'lib/cql/protocol/response_frame.rb', line 65 def length @length end |
#opcode ⇒ Object (readonly)
Returns the value of attribute opcode.
65 66 67 |
# File 'lib/cql/protocol/response_frame.rb', line 65 def opcode @opcode end |
#protocol_version ⇒ Object (readonly)
Returns the value of attribute protocol_version.
65 66 67 |
# File 'lib/cql/protocol/response_frame.rb', line 65 def protocol_version @protocol_version end |
#stream_id ⇒ Object (readonly)
Returns the value of attribute stream_id.
65 66 67 |
# File 'lib/cql/protocol/response_frame.rb', line 65 def stream_id @stream_id end |
Instance Method Details
#<<(str) ⇒ Object
72 73 74 75 |
# File 'lib/cql/protocol/response_frame.rb', line 72 def <<(str) @buffer << str check_complete! end |
#complete? ⇒ Boolean
77 78 79 |
# File 'lib/cql/protocol/response_frame.rb', line 77 def complete? !!@protocol_version end |