Sha256: dc2d05ce2abfe5ff52a66ca7a857e9bdb9ef0ee994b4376c0e27a3db26b849de

Contents?: true

Size: 1.21 KB

Versions: 5

Compression:

Stored size: 1.21 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
          @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::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

5 entries across 5 versions & 1 rubygems

Version Path
twilio-ruby-5.73.4 lib/twilio-ruby/rest/oauth/v1.rb
twilio-ruby-5.73.3 lib/twilio-ruby/rest/oauth/v1.rb
twilio-ruby-5.73.2 lib/twilio-ruby/rest/oauth/v1.rb
twilio-ruby-5.73.1 lib/twilio-ruby/rest/oauth/v1.rb
twilio-ruby-5.73.0 lib/twilio-ruby/rest/oauth/v1.rb