Sha256: 4dec0dde903ecff4ceb803795567e180430df29b89886d15f556fdeb5d8f3f38

Contents?: true

Size: 1.27 KB

Versions: 19

Compression:

Stored size: 1.27 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] form_type The Type of this Form. One of `form-app-push`,
      #   `form-sms` or `form-totp`.
      # @return [Twilio::REST::Authy::V1::FormInstance] if form_type was passed.
      # @return [Twilio::REST::Authy::V1::FormList]
      def forms(form_type=:unset)
        self.v1.forms(form_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

19 entries across 19 versions & 1 rubygems

Version Path
twilio-ruby-5.37.0 lib/twilio-ruby/rest/authy.rb
twilio-ruby-5.36.0 lib/twilio-ruby/rest/authy.rb
twilio-ruby-5.35.0 lib/twilio-ruby/rest/authy.rb
twilio-ruby-5.34.1 lib/twilio-ruby/rest/authy.rb
twilio-ruby-5.34.0 lib/twilio-ruby/rest/authy.rb
twilio-ruby-5.33.1 lib/twilio-ruby/rest/authy.rb
twilio-ruby-5.33.0 lib/twilio-ruby/rest/authy.rb
twilio-ruby-5.32.0 lib/twilio-ruby/rest/authy.rb
twilio-ruby-5.31.6 lib/twilio-ruby/rest/authy.rb
twilio-ruby-5.31.5 lib/twilio-ruby/rest/authy.rb
twilio-ruby-5.31.4 lib/twilio-ruby/rest/authy.rb
twilio-ruby-5.31.3 lib/twilio-ruby/rest/authy.rb
twilio-ruby-5.31.2 lib/twilio-ruby/rest/authy.rb
twilio-ruby-5.31.1 lib/twilio-ruby/rest/authy.rb
twilio-ruby-5.31.0 lib/twilio-ruby/rest/authy.rb
twilio-ruby-5.30.0 lib/twilio-ruby/rest/authy.rb
twilio-ruby-5.29.1 lib/twilio-ruby/rest/authy.rb
twilio-ruby-5.29.0 lib/twilio-ruby/rest/authy.rb
twilio-ruby-5.25.2 lib/twilio-ruby/rest/authy.rb