Class: Qrack::Channel
- Inherits:
-
Object
- Object
- Qrack::Channel
- Defined in:
- 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.
10 11 12 13 14 15 16 |
# File 'lib/qrack/channel.rb', line 10 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.
7 8 9 |
# File 'lib/qrack/channel.rb', line 7 def active @active end |
#client ⇒ Object (readonly)
Returns the value of attribute client.
8 9 10 |
# File 'lib/qrack/channel.rb', line 8 def client @client end |
#frame_buffer ⇒ Object
Returns the value of attribute frame_buffer.
7 8 9 |
# File 'lib/qrack/channel.rb', line 7 def frame_buffer @frame_buffer end |
#number ⇒ Object
Returns the value of attribute number.
7 8 9 |
# File 'lib/qrack/channel.rb', line 7 def number @number end |