Sha256: 5286d1a9201ce65c77648cd4b7610436940567f8d5a21af1859e33d04dc7f4a4

Contents?: true

Size: 1.25 KB

Versions: 1

Compression:

Stored size: 1.25 KB

Contents

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

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

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

        # Versions
        @v1 = nil
      end

      ##
      # Version v1 of authy
      def v1
        @v1 ||= V1.new self
      end

      ##
      # @param [form.FormTypes] type The Type of this Form. One of `form-app-push`,
      #   `form-sms` or `form-totp`.
      # @return [Twilio::REST::Authy::V1::FormInstance] if type was passed.
      # @return [Twilio::REST::Authy::V1::FormList]
      def forms(type=:unset)
        self.v1.forms(type)
      end

      ##
      # @param [String] sid A 34 character string that uniquely identifies this Service.
      # @return [Twilio::REST::Authy::V1::ServiceInstance] if sid was passed.
      # @return [Twilio::REST::Authy::V1::ServiceList]
      def services(sid=:unset)
        self.v1.services(sid)
      end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
twilio-ruby-5.17.0 lib/twilio-ruby/rest/authy.rb