Class: Sinch::Builder::Request::Verification

Inherits:
Base
  • Object
show all
Defined in:
lib/sinch/builder/request/verification.rb

Overview

Verification Request Builder

Instance Attribute Summary

Attributes inherited from Base

#params

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Sinch::Builder::Request::Base

Instance Method Details

#buildObject



8
9
10
11
12
13
14
15
16
# File 'lib/sinch/builder/request/verification.rb', line 8

def build
  {
    identity: {
      type: 'number',
      endpoint: phone_number
    },
    method: 'sms'
  }
end