Class: Twilio::REST::Api::V2010::AccountContext::ValidationRequestInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Api::V2010::AccountContext::ValidationRequestInstance
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/validation_request.rb
Instance Method Summary collapse
-
#account_sid ⇒ String
The SID of the Account that created the resource.
-
#call_sid ⇒ String
The SID of the Call the resource is associated with.
-
#friendly_name ⇒ String
The string that you assigned to describe the resource.
-
#initialize(version, payload, account_sid: nil) ⇒ ValidationRequestInstance
constructor
Initialize the ValidationRequestInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#phone_number ⇒ String
The phone number to verify in E.164 format.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#validation_code ⇒ String
The 6 digit validation code that someone must enter to validate the Caller ID when ‘phone_number` is called.
Constructor Details
#initialize(version, payload, account_sid: nil) ⇒ ValidationRequestInstance
Initialize the ValidationRequestInstance
114 115 116 117 118 119 120 121 122 123 124 125 |
# File 'lib/twilio-ruby/rest/api/v2010/account/validation_request.rb', line 114 def initialize(version, payload, account_sid: nil) super(version) # Marshaled Properties @properties = { 'account_sid' => payload['account_sid'], 'phone_number' => payload['phone_number'], 'friendly_name' => payload['friendly_name'], 'validation_code' => payload['validation_code'].to_i, 'call_sid' => payload['call_sid'], } end |
Instance Method Details
#account_sid ⇒ String
Returns The SID of the Account that created the resource.
129 130 131 |
# File 'lib/twilio-ruby/rest/api/v2010/account/validation_request.rb', line 129 def account_sid @properties['account_sid'] end |
#call_sid ⇒ String
Returns The SID of the Call the resource is associated with.
153 154 155 |
# File 'lib/twilio-ruby/rest/api/v2010/account/validation_request.rb', line 153 def call_sid @properties['call_sid'] end |
#friendly_name ⇒ String
Returns The string that you assigned to describe the resource.
141 142 143 |
# File 'lib/twilio-ruby/rest/api/v2010/account/validation_request.rb', line 141 def friendly_name @properties['friendly_name'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
165 166 167 |
# File 'lib/twilio-ruby/rest/api/v2010/account/validation_request.rb', line 165 def inspect "<Twilio.Api.V2010.ValidationRequestInstance>" end |
#phone_number ⇒ String
Returns The phone number to verify in E.164 format.
135 136 137 |
# File 'lib/twilio-ruby/rest/api/v2010/account/validation_request.rb', line 135 def phone_number @properties['phone_number'] end |
#to_s ⇒ Object
Provide a user friendly representation
159 160 161 |
# File 'lib/twilio-ruby/rest/api/v2010/account/validation_request.rb', line 159 def to_s "<Twilio.Api.V2010.ValidationRequestInstance>" end |
#validation_code ⇒ String
Returns The 6 digit validation code that someone must enter to validate the Caller ID when ‘phone_number` is called.
147 148 149 |
# File 'lib/twilio-ruby/rest/api/v2010/account/validation_request.rb', line 147 def validation_code @properties['validation_code'] end |