Sha256: 21cd90dadc9f8ac6cf43f5bb7d3aac206d8dbc569236474838b3fa5669202b10

Contents?: true

Size: 1.39 KB

Versions: 9

Compression:

Stored size: 1.39 KB

Contents

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

module Twilio
  module REST
    class Oauth
      class V1 < Version
        ##
        # Initialize the V1 version of Oauth
        def initialize(domain)
          super
          @version = 'v1'
          @oauth = nil
          @device_code = nil
          @openid_discovery = nil
          @token = nil
          @user_info = nil
        end

        ##
        # @return [Twilio::REST::Oauth::V1::OauthContext]
        def oauth
          @oauth ||= OauthContext.new self
        end

        ##
        # @return [Twilio::REST::Oauth::V1::DeviceCodeContext]
        def device_code
          @device_code ||= DeviceCodeList.new self
        end

        ##
        # @return [Twilio::REST::Oauth::V1::OpenidDiscoveryContext]
        def openid_discovery
          @openid_discovery ||= OpenidDiscoveryContext.new self
        end

        ##
        # @return [Twilio::REST::Oauth::V1::TokenContext]
        def token
          @token ||= TokenList.new self
        end

        ##
        # @return [Twilio::REST::Oauth::V1::UserInfoContext]
        def user_info
          @user_info ||= UserInfoContext.new self
        end

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
twilio-ruby-5.77.0 lib/twilio-ruby/rest/oauth/v1.rb
twilio-ruby-5.76.0 lib/twilio-ruby/rest/oauth/v1.rb
twilio-ruby-5.75.0 lib/twilio-ruby/rest/oauth/v1.rb
twilio-ruby-5.74.5 lib/twilio-ruby/rest/oauth/v1.rb
twilio-ruby-5.74.4 lib/twilio-ruby/rest/oauth/v1.rb
twilio-ruby-5.74.3 lib/twilio-ruby/rest/oauth/v1.rb
twilio-ruby-5.74.2 lib/twilio-ruby/rest/oauth/v1.rb
twilio-ruby-5.74.1 lib/twilio-ruby/rest/oauth/v1.rb
twilio-ruby-5.74.0 lib/twilio-ruby/rest/oauth/v1.rb