Class: Twilio::REST::Verify

Inherits:
Domain
  • Object
show all
Defined in:
lib/twilio-ruby/rest/verify.rb,
lib/twilio-ruby/rest/verify/v2.rb,
lib/twilio-ruby/rest/verify/v2/form.rb,
lib/twilio-ruby/rest/verify/v2/service.rb,
lib/twilio-ruby/rest/verify/v2/service/entity.rb,
lib/twilio-ruby/rest/verify/v2/service/webhook.rb,
lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb,
lib/twilio-ruby/rest/verify/v2/service/access_token.rb,
lib/twilio-ruby/rest/verify/v2/service/verification.rb,
lib/twilio-ruby/rest/verify/v2/verification_attempt.rb,
lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb,
lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb,
lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb,
lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb,
lib/twilio-ruby/rest/verify/v2/service/verification_check.rb,
lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb,
lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb

Defined Under Namespace

Classes: V2

Instance Attribute Summary

Attributes inherited from Domain

#client

Instance Method Summary collapse

Methods inherited from Domain

#absolute_url, #request

Constructor Details

#initialize(twilio) ⇒ Verify

Initialize the Verify Domain


14
15
16
17
18
19
20
21
22
23
# File 'lib/twilio-ruby/rest/verify.rb', line 14

def initialize(twilio)
  super

  @base_url = 'https://verify.twilio.com'
  @host = 'verify.twilio.com'
  @port = 443

  # Versions
  @v2 = nil
end

Instance Method Details

#forms(form_type = :unset) ⇒ Twilio::REST::Verify::V2::FormInstance, Twilio::REST::Verify::V2::FormList

Parameters:

  • form_type (form.FormTypes) (defaults to: :unset)

    The Type of this Form. Currently only `form-push` is supported.

Returns:


36
37
38
# File 'lib/twilio-ruby/rest/verify.rb', line 36

def forms(form_type=:unset)
  self.v2.forms(form_type)
end

#services(sid = :unset) ⇒ Twilio::REST::Verify::V2::ServiceInstance, Twilio::REST::Verify::V2::ServiceList

Parameters:

  • sid (String) (defaults to: :unset)

    The unique string that we created to identify the Service resource.

Returns:


45
46
47
# File 'lib/twilio-ruby/rest/verify.rb', line 45

def services(sid=:unset)
  self.v2.services(sid)
end

#to_sObject

Provide a user friendly representation


60
61
62
# File 'lib/twilio-ruby/rest/verify.rb', line 60

def to_s
  '#<Twilio::REST::Verify>'
end

#v2Object

Version v2 of verify


27
28
29
# File 'lib/twilio-ruby/rest/verify.rb', line 27

def v2
  @v2 ||= V2.new self
end

#verification_attempts(sid = :unset) ⇒ Twilio::REST::Verify::V2::VerificationAttemptInstance, Twilio::REST::Verify::V2::VerificationAttemptList

Parameters:

  • sid (String) (defaults to: :unset)

    A 34 character string that uniquely identifies this Verification Attempt.

Returns:


54
55
56
# File 'lib/twilio-ruby/rest/verify.rb', line 54

def verification_attempts(sid=:unset)
  self.v2.verification_attempts(sid)
end