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/service.rb,
lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb,
lib/twilio-ruby/rest/verify/v2/service/verification.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

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

#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:



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

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

#to_sObject

Provide a user friendly representation



42
43
44
# File 'lib/twilio-ruby/rest/verify.rb', line 42

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