class Outbox::Clients::TestClient
The TestClient
is a bare bones client that does nothing. It is useful when you are testing.
It also provides a template of the minimum methods required to make a custom client.
Public Class Methods
deliveries()
click to toggle source
Provides a store of all the message sent with the TestClient
so you can check them.
# File lib/outbox/clients/test_client.rb, line 11 def self.deliveries @@deliveries ||= [] end
Public Instance Methods
deliver(message)
click to toggle source
# File lib/outbox/clients/test_client.rb, line 15 def deliver(message) self.class.deliveries << message end