Class: Twilio::REST::Numbers::V1::VoiceVerificationCheckInstance

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

Instance Method Summary collapse

Constructor Details

#initialize(version, payload) ⇒ VoiceVerificationCheckInstance

Initialize the VoiceVerificationCheckInstance

Parameters:

  • version (Version)

    Version that contains the resource

  • payload (Hash)

    payload that contains response from Twilio

  • account_sid (String)

    The SID of the Account that created this VoiceVerificationCheck resource.

  • sid (String)

    The SID of the Call resource to fetch.



184
185
186
187
188
189
190
191
192
193
# File 'lib/twilio-ruby/rest/numbers/v1/voice_verification_check.rb', line 184

def initialize(version, payload )
    super(version)
    
    
    # Marshaled Properties
    @properties = { 
        'to' => payload['to'],
        'caller_id_sid' => payload['caller_id_sid'],
    }
end

Instance Method Details

#caller_id_sidString

Returns The Caller ID SID created upon successful verification.

Returns:

  • (String)

    The Caller ID SID created upon successful verification.



204
205
206
# File 'lib/twilio-ruby/rest/numbers/v1/voice_verification_check.rb', line 204

def caller_id_sid
    @properties['caller_id_sid']
end

#inspectObject

Provide a detailed, user friendly representation



216
217
218
# File 'lib/twilio-ruby/rest/numbers/v1/voice_verification_check.rb', line 216

def inspect
    "<Twilio.Numbers.V1.VoiceVerificationCheckInstance>"
end

#toString

Returns The phone number that was verified in E.164 format.

Returns:

  • (String)

    The phone number that was verified in E.164 format.



198
199
200
# File 'lib/twilio-ruby/rest/numbers/v1/voice_verification_check.rb', line 198

def to
    @properties['to']
end

#to_sObject

Provide a user friendly representation



210
211
212
# File 'lib/twilio-ruby/rest/numbers/v1/voice_verification_check.rb', line 210

def to_s
    "<Twilio.Numbers.V1.VoiceVerificationCheckInstance>"
end