Class: Atig::Channel::Mention
- Defined in:
- lib/atig/channel/mention.rb
Instance Method Summary collapse
- #channel_name ⇒ Object
-
#initialize(context, gateway, db) ⇒ Mention
constructor
A new instance of Mention.
Constructor Details
#initialize(context, gateway, db) ⇒ Mention
Returns a new instance of Mention.
7 8 9 10 11 12 13 14 15 |
# File 'lib/atig/channel/mention.rb', line 7 def initialize(context, gateway, db) super db.statuses.listen do|entry| if entry.status.text.include?("@#{db.me.screen_name}") @channel.(entry) end end end |
Instance Method Details
#channel_name ⇒ Object
17 |
# File 'lib/atig/channel/mention.rb', line 17 def channel_name; "#mention" end |