class Telepost::Fake

Fake one

Attributes

sent[R]

Public Class Methods

new() click to toggle source
# File lib/telepost.rb, line 46
def initialize
  @sent = []
end

Public Instance Methods

post(chat, *lines) click to toggle source
# File lib/telepost.rb, line 58
def post(chat, *lines)
  @sent << "#{chat}: #{lines.join(' ')}"
end
run() click to toggle source
# File lib/telepost.rb, line 50
def run
  # Nothing to do here
end
spam(*lines) click to toggle source
# File lib/telepost.rb, line 54
def spam(*lines)
  post(0, lines)
end