Sha256: 02978a253d2806d9aec6135455b9355f50da6cfa29ab66335d255620f4855a6f

Contents?: true

Size: 422 Bytes

Versions: 8

Compression:

Stored size: 422 Bytes

Contents

module Bot
  module Adapter
    class Test < Base
      @@sent_messages = []

      def send_messages(messages, from)
        @@sent_messages += Array.wrap(messages)
      end

      def get_profile_image(username, as_user)
        "#{username}_profile_image"
      end

      def self.sent_messages
        @@sent_messages
      end

      def self.empty_messages
        @@sent_messages = []
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
bot-0.0.35 lib/bot/adapters/test.rb
bot-0.0.34 lib/bot/adapters/test.rb
bot-0.0.33 lib/bot/adapters/test.rb
bot-0.0.32 lib/bot/adapters/test.rb
bot-0.0.31 lib/bot/adapters/test.rb
bot-0.0.30 lib/bot/adapters/test.rb
bot-0.0.29 lib/bot/adapters/test.rb
bot-0.0.28 lib/bot/adapters/test.rb