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](www.twilio.com/docs/iam/api/account) responsible for the Caller ID.
-
#call_sid ⇒ String
The SID of the [Call](www.twilio.com/docs/voice/api/call-resource) the Caller ID 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](www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number.
-
#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_numberis called.
Constructor Details
#initialize(version, payload, account_sid: nil) ⇒ ValidationRequestInstance
Initialize the ValidationRequestInstance
232 233 234 235 236 237 238 239 240 241 242 243 244 |
# File 'lib/twilio-ruby/rest/api/v2010/account/validation_request.rb', line 232 def initialize(version, payload , account_sid: nil) super(version) # Marshaled Properties @properties = { 'account_sid' => payload['account_sid'], 'call_sid' => payload['call_sid'], 'friendly_name' => payload['friendly_name'], 'phone_number' => payload['phone_number'], 'validation_code' => payload['validation_code'], } end |
Instance Method Details
#account_sid ⇒ String
Returns The SID of the [Account](www.twilio.com/docs/iam/api/account) responsible for the Caller ID.
249 250 251 |
# File 'lib/twilio-ruby/rest/api/v2010/account/validation_request.rb', line 249 def account_sid @properties['account_sid'] end |
#call_sid ⇒ String
Returns The SID of the [Call](www.twilio.com/docs/voice/api/call-resource) the Caller ID is associated with.
255 256 257 |
# File 'lib/twilio-ruby/rest/api/v2010/account/validation_request.rb', line 255 def call_sid @properties['call_sid'] end |
#friendly_name ⇒ String
Returns The string that you assigned to describe the resource.
261 262 263 |
# File 'lib/twilio-ruby/rest/api/v2010/account/validation_request.rb', line 261 def friendly_name @properties['friendly_name'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
285 286 287 |
# File 'lib/twilio-ruby/rest/api/v2010/account/validation_request.rb', line 285 def inspect "<Twilio.Api.V2010.ValidationRequestInstance>" end |
#phone_number ⇒ String
Returns The phone number to verify in [E.164](www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number.
267 268 269 |
# File 'lib/twilio-ruby/rest/api/v2010/account/validation_request.rb', line 267 def phone_number @properties['phone_number'] end |
#to_s ⇒ Object
Provide a user friendly representation
279 280 281 |
# File 'lib/twilio-ruby/rest/api/v2010/account/validation_request.rb', line 279 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.
273 274 275 |
# File 'lib/twilio-ruby/rest/api/v2010/account/validation_request.rb', line 273 def validation_code @properties['validation_code'] end |