Class: Nsq::Frame
- Inherits:
-
Object
- Object
- Nsq::Frame
- Includes:
- AttributeLogger
- Defined in:
- lib/nsq/frames/frame.rb
Constant Summary collapse
- @@log_attributes =
[:connection]
Instance Attribute Summary collapse
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(data, connection) ⇒ Frame
constructor
A new instance of Frame.
Methods included from AttributeLogger
Constructor Details
#initialize(data, connection) ⇒ Frame
Returns a new instance of Frame.
11 12 13 14 |
# File 'lib/nsq/frames/frame.rb', line 11 def initialize(data, connection) @data = data @connection = connection end |
Instance Attribute Details
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
9 10 11 |
# File 'lib/nsq/frames/frame.rb', line 9 def connection @connection end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
8 9 10 |
# File 'lib/nsq/frames/frame.rb', line 8 def data @data end |