Sha256: 4700bd2bb2a5bd84b88124f89e0c606391a3648b82046122d20dd760cf2cc8c9

Contents?: true

Size: 1.11 KB

Versions: 64

Compression:

Stored size: 1.11 KB

Contents

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

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

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

        # Versions
        @v1 = nil
      end

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

      ##
      # @return [Twilio::REST::Accounts::V1::AuthTokenPromotionInstance]
      def auth_token_promotion
        self.v1.auth_token_promotion()
      end

      ##
      # @return [Twilio::REST::Accounts::V1::CredentialInstance]
      def credentials
        self.v1.credentials()
      end

      ##
      # @return [Twilio::REST::Accounts::V1::SecondaryAuthTokenInstance]
      def secondary_auth_token
        self.v1.secondary_auth_token()
      end

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

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
twilio-ruby-5.77.0 lib/twilio-ruby/rest/accounts.rb
twilio-ruby-5.76.0 lib/twilio-ruby/rest/accounts.rb
twilio-ruby-5.75.0 lib/twilio-ruby/rest/accounts.rb
twilio-ruby-5.74.5 lib/twilio-ruby/rest/accounts.rb
twilio-ruby-5.74.4 lib/twilio-ruby/rest/accounts.rb
twilio-ruby-5.74.3 lib/twilio-ruby/rest/accounts.rb
twilio-ruby-5.74.2 lib/twilio-ruby/rest/accounts.rb
twilio-ruby-5.74.1 lib/twilio-ruby/rest/accounts.rb
twilio-ruby-5.74.0 lib/twilio-ruby/rest/accounts.rb
twilio-ruby-5.73.4 lib/twilio-ruby/rest/accounts.rb
twilio-ruby-5.73.3 lib/twilio-ruby/rest/accounts.rb
twilio-ruby-5.73.2 lib/twilio-ruby/rest/accounts.rb
twilio-ruby-5.73.1 lib/twilio-ruby/rest/accounts.rb
twilio-ruby-5.73.0 lib/twilio-ruby/rest/accounts.rb
twilio-ruby-5.72.1 lib/twilio-ruby/rest/accounts.rb
twilio-ruby-5.72.0 lib/twilio-ruby/rest/accounts.rb
twilio-ruby-5.71.0 lib/twilio-ruby/rest/accounts.rb
twilio-ruby-5.70.1 lib/twilio-ruby/rest/accounts.rb
twilio-ruby-5.70.0 lib/twilio-ruby/rest/accounts.rb
twilio-ruby-5.69.0 lib/twilio-ruby/rest/accounts.rb