Class: Ant::Bot::Adapter::DebugMessage
- Defined in:
- lib/ant/bot/adapters/debug.rb
Overview
:nodoc: # Wraps a debugging message inside a class.
Instance Method Summary collapse
-
#channel_id ⇒ Object
Returns the channel id.
-
#initialize(text, channel) ⇒ DebugMessage
constructor
It receives a string with the raw text and the id of the channel.
-
#raw_message ⇒ Object
Returns the message contents.
Methods inherited from Message
Constructor Details
#initialize(text, channel) ⇒ DebugMessage
It receives a string with the raw text and the id of the channel
11 12 13 14 |
# File 'lib/ant/bot/adapters/debug.rb', line 11 def initialize(text, channel) @text = text @channel = channel end |
Instance Method Details
#channel_id ⇒ Object
Returns the channel id
17 18 19 |
# File 'lib/ant/bot/adapters/debug.rb', line 17 def channel_id "debug_message__#{@channel}" end |
#raw_message ⇒ Object
Returns the message contents
22 23 24 |
# File 'lib/ant/bot/adapters/debug.rb', line 22 def @text end |