Class: Channel
- Inherits:
-
Object
- Object
- Channel
- Defined in:
- lib/channel.rb
Overview
channel.rb
~~~~~~~~~
This module implements the Channel class.
:authors: Konstantin Bokarius.
:copyright: (c) 2015 by Fanout, Inc.
:license: MIT, see LICENSE for more details.
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#prev_id ⇒ Object
Returns the value of attribute prev_id.
Instance Method Summary collapse
-
#initialize(name, prev_id = nil) ⇒ Channel
constructor
A new instance of Channel.
Constructor Details
#initialize(name, prev_id = nil) ⇒ Channel
Returns a new instance of Channel.
12 13 14 15 |
# File 'lib/channel.rb', line 12 def initialize(name, prev_id=nil) @name = name @prev_id = prev_id end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
9 10 11 |
# File 'lib/channel.rb', line 9 def name @name end |
#prev_id ⇒ Object
Returns the value of attribute prev_id.
10 11 12 |
# File 'lib/channel.rb', line 10 def prev_id @prev_id end |