Sha256: 3185b5564d90114c572e9eafeecc14238d6d87b8b23e349c01158153a544ad24

Contents?: true

Size: 1.96 KB

Versions: 11

Compression:

Stored size: 1.96 KB

Contents

##
# This code was generated by
# \ / _    _  _|   _  _
#  | (_)\/(_)(_|\/| |(/_  v1.0.0
#       /       /
#
# frozen_string_literal: true

module Twilio
  module REST
    class Verify < Domain
      ##
      # Initialize the Verify Domain
      def initialize(twilio)
        super

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

        # Versions
        @v2 = nil
      end

      ##
      # Version v2 of verify
      def v2
        @v2 ||= V2.new self
      end

      ##
      # @param [form.FormTypes] form_type The Type of this Form. Currently only
      #   `form-push` is supported.
      # @return [Twilio::REST::Verify::V2::FormInstance] if form_type was passed.
      # @return [Twilio::REST::Verify::V2::FormList]
      def forms(form_type=:unset)
        self.v2.forms(form_type)
      end

      ##
      # @param [String] sid The unique string that we created to identify the Service
      #   resource.
      # @return [Twilio::REST::Verify::V2::ServiceInstance] if sid was passed.
      # @return [Twilio::REST::Verify::V2::ServiceList]
      def services(sid=:unset)
        self.v2.services(sid)
      end

      ##
      # @param [String] sid The SID that uniquely identifies the verification attempt
      #   resource.
      # @return [Twilio::REST::Verify::V2::VerificationAttemptInstance] if sid was passed.
      # @return [Twilio::REST::Verify::V2::VerificationAttemptList]
      def verification_attempts(sid=:unset)
        self.v2.verification_attempts(sid)
      end

      ##
      # @return [Twilio::REST::Verify::V2::VerificationAttemptsSummaryInstance]
      def verification_attempts_summary
        self.v2.verification_attempts_summary()
      end

      ##
      # @return [Twilio::REST::Verify::V2::TemplateInstance]
      def templates
        self.v2.templates()
      end

      ##
      # Provide a user friendly representation
      def to_s
        '#<Twilio::REST::Verify>'
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
twilio-ruby-5.71.0 lib/twilio-ruby/rest/verify.rb
twilio-ruby-5.70.1 lib/twilio-ruby/rest/verify.rb
twilio-ruby-5.70.0 lib/twilio-ruby/rest/verify.rb
twilio-ruby-5.69.0 lib/twilio-ruby/rest/verify.rb
twilio-ruby-5.68.0 lib/twilio-ruby/rest/verify.rb
twilio-ruby-5.67.3 lib/twilio-ruby/rest/verify.rb
twilio-ruby-5.67.2 lib/twilio-ruby/rest/verify.rb
twilio-ruby-5.67.1 lib/twilio-ruby/rest/verify.rb
twilio-ruby-5.67.0 lib/twilio-ruby/rest/verify.rb
twilio-ruby-5.66.2 lib/twilio-ruby/rest/verify.rb
twilio-ruby-5.66.1 lib/twilio-ruby/rest/verify.rb