Sha256: e9347dbb2e602c333b75dc4b0612382a9d4a9d1564148edfde646300590212df

Contents?: true

Size: 322 Bytes

Versions: 7

Compression:

Stored size: 322 Bytes

Contents

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

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

      def self.sent_messages
        @@sent_messages
      end

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bot-0.0.23 lib/bot/adapters/test.rb
bot-0.0.22 lib/bot/adapters/test.rb
bot-0.0.20 lib/bot/adapters/test.rb
bot-0.0.19 lib/bot/adapters/test.rb
bot-0.0.18 lib/bot/adapters/test.rb
bot-0.0.17 lib/bot/adapters/test.rb
bot-0.0.16 lib/bot/adapters/test.rb