Class: Atig::Channel::Channel
- Inherits:
-
Object
- Object
- Atig::Channel::Channel
- Defined in:
- lib/atig/channel/channel.rb
Instance Method Summary collapse
-
#initialize(context, gateway, db) ⇒ Channel
constructor
A new instance of Channel.
Constructor Details
#initialize(context, gateway, db) ⇒ Channel
Returns a new instance of Channel.
6 7 8 9 10 11 12 13 14 |
# File 'lib/atig/channel/channel.rb', line 6 def initialize(context, gateway, db) @db = db @channel = gateway.channel channel_name, :handler=>self @channel.join_me db.statuses.listen do|entry| @channel.topic entry if entry.user.id == db.me.id end end |