Class: ActionTexter::TestClient
- Defined in:
- lib/action_texter/test.rb
Overview
A client that doesn’t send any message but instead stores them on an array.
Instance Method Summary collapse
- #deliver(message) ⇒ Object
-
#deliveries ⇒ Array<Message>
All the delivered messages so far.
-
#initialize ⇒ TestClient
constructor
A new instance of TestClient.
Methods inherited from Client
default, default=, setup, #to_s
Constructor Details
#initialize ⇒ TestClient
Returns a new instance of TestClient.
37 38 39 |
# File 'lib/action_texter/test.rb', line 37 def initialize @@deliveries = [] end |
Instance Method Details
#deliver(message) ⇒ Object
41 42 43 44 |
# File 'lib/action_texter/test.rb', line 41 def deliver() @@deliveries << ActionTexter::TestResponse.new() end |
#deliveries ⇒ Array<Message>
All the delivered messages so far.
49 50 51 |
# File 'lib/action_texter/test.rb', line 49 def deliveries @@deliveries end |