class ActionTexter::TestClient
A client that doesn’t send any message but instead stores them on an array.
Public Class Methods
new()
click to toggle source
# File lib/action_texter/test.rb, line 37 def initialize @@deliveries = [] end
Public Instance Methods
deliver(message)
click to toggle source
# File lib/action_texter/test.rb, line 41 def deliver(message) @@deliveries << message ActionTexter::TestResponse.new(message) end
deliveries()
click to toggle source
All the delivered messages so far.
@return [Array<Message>] delivered messages.
# File lib/action_texter/test.rb, line 49 def deliveries @@deliveries end