class Sinch::BogusGateway
Constants
- Response
Stub the
Response
Public Class Methods
request(endpoint, _params = {})
click to toggle source
# File lib/sinch/bogus_gateway.rb, line 8 def request(endpoint, _params = {}) new.send(endpoint) end
Public Instance Methods
report_verification()
click to toggle source
# File lib/sinch/bogus_gateway.rb, line 26 def report_verification Response.new( 200, true, 'request_id' => '323208e2-5e06-4f89-9109-febe2422e715', 'method' => 'sms', 'status' => 'SUCCESSFUL' ) end
send_sms()
click to toggle source
# File lib/sinch/bogus_gateway.rb, line 36 def send_sms Response.new( 200, true, messageId: '166386921' ) end
verification()
click to toggle source
# File lib/sinch/bogus_gateway.rb, line 13 def verification Response.new( 200, true, 'request_id' => '323208e2-5e06-4f89-9109-febe2422e715', 'sms' => { 'template' => 'Your verification code is code', 'interceptionTimeout' => 120 }, 'method' => 'sms' ) end