Class: Pechkin::Chanel
- Inherits:
-
Object
- Object
- Pechkin::Chanel
- Defined in:
- lib/pechkin/channel.rb
Overview
Creates object which can send messages to assigned chanels
Instance Attribute Summary collapse
-
#logger ⇒ Object
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize(connector, channel_list) ⇒ Chanel
constructor
A new instance of Chanel.
- #send_message(message, data, options) ⇒ Object
Constructor Details
#initialize(connector, channel_list) ⇒ Chanel
Returns a new instance of Chanel.
6 7 8 9 10 11 |
# File 'lib/pechkin/channel.rb', line 6 def initialize(connector, channel_list) @connector = connector @channel_list = channel_list @channel_list = [channel_list] unless channel_list.is_a?(Array) @logger = ::Logger.new(STDOUT) end |
Instance Attribute Details
#logger ⇒ Object
Returns the value of attribute logger.
4 5 6 |
# File 'lib/pechkin/channel.rb', line 4 def logger @logger end |