Class: Channel

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#nameObject

Returns the value of attribute name.



9
10
11
# File 'lib/channel.rb', line 9

def name
  @name
end

#prev_idObject

Returns the value of attribute prev_id.



10
11
12
# File 'lib/channel.rb', line 10

def prev_id
  @prev_id
end