Class: Twilio::REST::Numbers::V1::SmsVerificationList::NumbersV1SmsVerificationRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/twilio-ruby/rest/numbers/v1/sms_verification.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ NumbersV1SmsVerificationRequest

Returns a new instance of NumbersV1SmsVerificationRequest.



27
28
29
30
31
# File 'lib/twilio-ruby/rest/numbers/v1/sms_verification.rb', line 27

def initialize(payload)
        @to = payload["to"]
        @locale = payload["locale"]
        @friendly_name = payload["friendly_name"]
end

Instance Attribute Details

#friendly_name ⇒ Object

Parameters:

  • : (to) —

    [String] The phone number to verify in E.164 format.

  • : (locale) —

    [String] The locale for the verification SMS message.

  • : (friendly_name) —

    [String] A human-readable name for the caller ID.



26
27
28
# File 'lib/twilio-ruby/rest/numbers/v1/sms_verification.rb', line 26

def friendly_name
  @friendly_name
end

#locale ⇒ Object

Parameters:

  • : (to) —

    [String] The phone number to verify in E.164 format.

  • : (locale) —

    [String] The locale for the verification SMS message.

  • : (friendly_name) —

    [String] A human-readable name for the caller ID.



26
27
28
# File 'lib/twilio-ruby/rest/numbers/v1/sms_verification.rb', line 26

def locale
  @locale
end

#to ⇒ Object

Parameters:

  • : (to) —

    [String] The phone number to verify in E.164 format.

  • : (locale) —

    [String] The locale for the verification SMS message.

  • : (friendly_name) —

    [String] A human-readable name for the caller ID.



26
27
28
# File 'lib/twilio-ruby/rest/numbers/v1/sms_verification.rb', line 26

def to
  @to
end

Instance Method Details

#to_json(options = {}) ⇒ Object



32
33
34
35
36
37
38
# File 'lib/twilio-ruby/rest/numbers/v1/sms_verification.rb', line 32

def to_json(options = {})
{
        "to": @to,
        "locale": @locale,
        "friendly_name": @friendly_name,
}.to_json(options)
end