Class: Twilio::REST::Verify::V2::ServiceContext::VerificationList
- Inherits:
-
ListResource
- Object
- ListResource
- Twilio::REST::Verify::V2::ServiceContext::VerificationList
- Defined in:
- lib/twilio-ruby/rest/verify/v2/service/verification.rb
Overview
PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
Instance Method Summary collapse
-
#create(to: nil, channel: nil, custom_message: :unset, send_digits: :unset, locale: :unset, custom_code: :unset, amount: :unset, payee: :unset, rate_limits: :unset) ⇒ VerificationInstance
Retrieve a single page of VerificationInstance records from the API.
-
#initialize(version, service_sid: nil) ⇒ VerificationList
constructor
Initialize the VerificationList.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, service_sid: nil) ⇒ VerificationList
Initialize the VerificationList
24 25 26 27 28 29 30 |
# File 'lib/twilio-ruby/rest/verify/v2/service/verification.rb', line 24 def initialize(version, service_sid: nil) super(version) # Path Solution @solution = {service_sid: service_sid} @uri = "/Services/#{@solution[:service_sid]}/Verifications" end |
Instance Method Details
#create(to: nil, channel: nil, custom_message: :unset, send_digits: :unset, locale: :unset, custom_code: :unset, amount: :unset, payee: :unset, rate_limits: :unset) ⇒ VerificationInstance
Retrieve a single page of VerificationInstance records from the API. Request is executed immediately.
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/twilio-ruby/rest/verify/v2/service/verification.rb', line 58 def create(to: nil, channel: nil, custom_message: :unset, send_digits: :unset, locale: :unset, custom_code: :unset, amount: :unset, payee: :unset, rate_limits: :unset) data = Twilio::Values.of({ 'To' => to, 'Channel' => channel, 'CustomMessage' => , 'SendDigits' => send_digits, 'Locale' => locale, 'CustomCode' => custom_code, 'Amount' => amount, 'Payee' => payee, 'RateLimits' => Twilio.serialize_object(rate_limits), }) payload = @version.create( 'POST', @uri, data: data ) VerificationInstance.new(@version, payload, service_sid: @solution[:service_sid], ) end |
#to_s ⇒ Object
Provide a user friendly representation
82 83 84 |
# File 'lib/twilio-ruby/rest/verify/v2/service/verification.rb', line 82 def to_s '#<Twilio.Verify.V2.VerificationList>' end |