Class: Nsq::Frame

Inherits:
Object
  • Object
show all
Includes:
AttributeLogger
Defined in:
lib/nsq/frames/frame.rb

Direct Known Subclasses

Error, Message, Response

Constant Summary collapse

@@log_attributes =
[:connection]

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from AttributeLogger

included

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

#connectionObject (readonly)

Returns the value of attribute connection.



9
10
11
# File 'lib/nsq/frames/frame.rb', line 9

def connection
  @connection
end

#dataObject (readonly)

Returns the value of attribute data.



8
9
10
# File 'lib/nsq/frames/frame.rb', line 8

def data
  @data
end