Class: Qrack::Channel
- Inherits:
-
Object
- Object
- Qrack::Channel
- Defined in:
- lib/ext/bunny-0.6.0/lib/qrack/channel.rb
Overview
Channel ancestor class
Direct Known Subclasses
Instance Attribute Summary collapse
-
#active ⇒ Object
Returns the value of attribute active.
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#frame_buffer ⇒ Object
Returns the value of attribute frame_buffer.
-
#number ⇒ Object
Returns the value of attribute number.
Instance Method Summary collapse
-
#initialize(client) ⇒ Channel
constructor
A new instance of Channel.
Constructor Details
#initialize(client) ⇒ Channel
Returns a new instance of Channel.
8 9 10 11 12 13 14 |
# File 'lib/ext/bunny-0.6.0/lib/qrack/channel.rb', line 8 def initialize(client) @frame_buffer = [] @client = client @number = client.channels.size @active = false client.channels[@number] = self end |
Instance Attribute Details
#active ⇒ Object
Returns the value of attribute active.
5 6 7 |
# File 'lib/ext/bunny-0.6.0/lib/qrack/channel.rb', line 5 def active @active end |
#client ⇒ Object (readonly)
Returns the value of attribute client.
6 7 8 |
# File 'lib/ext/bunny-0.6.0/lib/qrack/channel.rb', line 6 def client @client end |
#frame_buffer ⇒ Object
Returns the value of attribute frame_buffer.
5 6 7 |
# File 'lib/ext/bunny-0.6.0/lib/qrack/channel.rb', line 5 def frame_buffer @frame_buffer end |
#number ⇒ Object
Returns the value of attribute number.
5 6 7 |
# File 'lib/ext/bunny-0.6.0/lib/qrack/channel.rb', line 5 def number @number end |