Class: Outbox::Clients::TestClient
- Defined in:
- lib/outbox/clients/test_client.rb
Overview
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.
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
-
.deliveries ⇒ Object
Provides a store of all the message sent with the TestClient so you can check them.
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Outbox::Clients::Base
Class Method Details
.deliveries ⇒ Object
Provides a store of all the message sent with the TestClient so you can check them.
11 12 13 |
# File 'lib/outbox/clients/test_client.rb', line 11 def self.deliveries @@deliveries ||= [] end |
Instance Method Details
#deliver(message) ⇒ Object
15 16 17 |
# File 'lib/outbox/clients/test_client.rb', line 15 def deliver() self.class.deliveries << end |