lib/mock/twilio/client.rb in mock-twilio-0.1.0 vs lib/mock/twilio/client.rb in mock-twilio-0.2.0
- old
+ new
@@ -5,10 +5,10 @@
# mock_client = Mock::Twilio::Client.new
# client = Twilio::REST::Client.new(nil, nil, nil, nil, mock_client)
# client.messages.create(to: "+593978613041", body: "RB This is the ship that made the Kesssssel Run in fourteen parsecs?", from: "+13212855389")
class Client
attr_accessor :adapter
- attr_reader :timeout, :last_response, :last_request
+ attr_reader :timeout, :last_response, :last_request, :proxy_addr, :proxy_port, :proxy_prot
def initialize(proxy_prot = nil, proxy_addr = nil, proxy_port = nil, timeout: nil)
@proxy_prot = proxy_prot || 'http'
@proxy_addr = proxy_addr || 'twilio_mock_server'
@proxy_port = proxy_port || '4010'