Class: Twilio::REST::Verify::V2::ServiceContext::VerificationCheckList
- Inherits:
-
ListResource
- Object
- ListResource
- Twilio::REST::Verify::V2::ServiceContext::VerificationCheckList
- Defined in:
- lib/twilio-ruby/rest/verify/v2/service/verification_check.rb
Instance Method Summary collapse
-
#create(code: :unset, to: :unset, verification_sid: :unset, amount: :unset, payee: :unset, sna_client_token: :unset) ⇒ VerificationCheckInstance
Create the VerificationCheckInstance.
-
#initialize(version, service_sid: nil) ⇒ VerificationCheckList
constructor
Initialize the VerificationCheckList.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, service_sid: nil) ⇒ VerificationCheckList
Initialize the VerificationCheckList
28 29 30 31 32 33 34 |
# File 'lib/twilio-ruby/rest/verify/v2/service/verification_check.rb', line 28 def initialize(version, service_sid: nil) super(version) # Path Solution @solution = { service_sid: service_sid } @uri = "/Services/#{@solution[:service_sid]}/VerificationCheck" end |
Instance Method Details
#create(code: :unset, to: :unset, verification_sid: :unset, amount: :unset, payee: :unset, sna_client_token: :unset) ⇒ VerificationCheckInstance
Create the VerificationCheckInstance
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/twilio-ruby/rest/verify/v2/service/verification_check.rb', line 44 def create( code: :unset, to: :unset, verification_sid: :unset, amount: :unset, payee: :unset, sna_client_token: :unset ) data = Twilio::Values.of({ 'Code' => code, 'To' => to, 'VerificationSid' => verification_sid, 'Amount' => amount, 'Payee' => payee, 'SnaClientToken' => sna_client_token, }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) payload = @version.create('POST', @uri, data: data, headers: headers) VerificationCheckInstance.new( @version, payload, service_sid: @solution[:service_sid], ) end |
#to_s ⇒ Object
Provide a user friendly representation
80 81 82 |
# File 'lib/twilio-ruby/rest/verify/v2/service/verification_check.rb', line 80 def to_s '#<Twilio.Verify.V2.VerificationCheckList>' end |