Class: Twilio::REST::Numbers::V1::VoiceVerificationInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Numbers::V1::VoiceVerificationInstance
- Defined in:
- lib/twilio-ruby/rest/numbers/v1/voice_verification.rb
Instance Method Summary collapse
-
#account_sid ⇒ String
The Account SID that owns this verification.
-
#call_sid ⇒ String
The Call SID for the verification call.
-
#friendly_name ⇒ String
A human-readable name for this caller ID.
-
#initialize(version, payload) ⇒ VoiceVerificationInstance
constructor
Initialize the VoiceVerificationInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#phone_number ⇒ String
The phone number being verified in E.164 format.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#validation_code ⇒ String
The 6-digit validation code to be entered during the call.
Constructor Details
#initialize(version, payload) ⇒ VoiceVerificationInstance
Initialize the VoiceVerificationInstance
164 165 166 167 168 169 170 171 172 173 174 175 176 |
# File 'lib/twilio-ruby/rest/numbers/v1/voice_verification.rb', line 164 def initialize(version, payload ) 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'], 'call_sid' => payload['call_sid'], } end |
Instance Method Details
#account_sid ⇒ String
Returns The Account SID that owns this verification.
181 182 183 |
# File 'lib/twilio-ruby/rest/numbers/v1/voice_verification.rb', line 181 def account_sid @properties['account_sid'] end |
#call_sid ⇒ String
Returns The Call SID for the verification call.
205 206 207 |
# File 'lib/twilio-ruby/rest/numbers/v1/voice_verification.rb', line 205 def call_sid @properties['call_sid'] end |
#friendly_name ⇒ String
Returns A human-readable name for this caller ID.
193 194 195 |
# File 'lib/twilio-ruby/rest/numbers/v1/voice_verification.rb', line 193 def friendly_name @properties['friendly_name'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
217 218 219 |
# File 'lib/twilio-ruby/rest/numbers/v1/voice_verification.rb', line 217 def inspect "<Twilio.Numbers.V1.VoiceVerificationInstance>" end |
#phone_number ⇒ String
Returns The phone number being verified in E.164 format.
187 188 189 |
# File 'lib/twilio-ruby/rest/numbers/v1/voice_verification.rb', line 187 def phone_number @properties['phone_number'] end |
#to_s ⇒ Object
Provide a user friendly representation
211 212 213 |
# File 'lib/twilio-ruby/rest/numbers/v1/voice_verification.rb', line 211 def to_s "<Twilio.Numbers.V1.VoiceVerificationInstance>" end |
#validation_code ⇒ String
Returns The 6-digit validation code to be entered during the call.
199 200 201 |
# File 'lib/twilio-ruby/rest/numbers/v1/voice_verification.rb', line 199 def validation_code @properties['validation_code'] end |