class Kybus::Bot::Adapter::DebugMessage

Wraps a debugging message inside a class.

Public Class Methods

new(text, channel) click to toggle source

It receives a string with the raw text and the id of the channel

# File lib/kybus/bot/adapters/debug.rb, line 11
def initialize(text, channel)
  @text = text
  @channel = channel
end

Public Instance Methods

channel_id() click to toggle source

Returns the channel id

# File lib/kybus/bot/adapters/debug.rb, line 17
def channel_id
  "debug_message__#{@channel}"
end
raw_message() click to toggle source

Returns the message contents

# File lib/kybus/bot/adapters/debug.rb, line 22
def raw_message
  @text
end