Sha256: 25658e19be559d3c620c0ffb228cb7c1c29d8b41541af9bed6c90ca5fb998f41

Contents?: true

Size: 386 Bytes

Versions: 22

Compression:

Stored size: 386 Bytes

Contents

# frozen_string_literal: true

module Doorkeeper
  module OAuth
    module Authorization
      class Context
        attr_reader :client, :grant_type, :resource_owner, :scopes

        def initialize(**attributes)
          attributes.each do |name, value|
            instance_variable_set(:"@#{name}", value) if respond_to?(name)
          end
        end
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
doorkeeper-5.8.0 lib/doorkeeper/oauth/authorization/context.rb
doorkeeper-5.7.1 lib/doorkeeper/oauth/authorization/context.rb
doorkeeper-5.7.0 lib/doorkeeper/oauth/authorization/context.rb
doorkeeper-5.6.9 lib/doorkeeper/oauth/authorization/context.rb
doorkeeper-5.6.8 lib/doorkeeper/oauth/authorization/context.rb
doorkeeper-5.6.7 lib/doorkeeper/oauth/authorization/context.rb
doorkeeper-5.6.6 lib/doorkeeper/oauth/authorization/context.rb
doorkeeper-5.6.5 lib/doorkeeper/oauth/authorization/context.rb
doorkeeper-5.6.4 lib/doorkeeper/oauth/authorization/context.rb
doorkeeper-5.6.3 lib/doorkeeper/oauth/authorization/context.rb
doorkeeper-5.6.2 lib/doorkeeper/oauth/authorization/context.rb
doorkeeper-5.6.1 lib/doorkeeper/oauth/authorization/context.rb
doorkeeper-5.6.0 lib/doorkeeper/oauth/authorization/context.rb
doorkeeper-5.6.0.rc2 lib/doorkeeper/oauth/authorization/context.rb
doorkeeper-5.6.0.rc1 lib/doorkeeper/oauth/authorization/context.rb
doorkeeper-5.5.4 lib/doorkeeper/oauth/authorization/context.rb
doorkeeper-5.5.3 lib/doorkeeper/oauth/authorization/context.rb
doorkeeper-5.5.2 lib/doorkeeper/oauth/authorization/context.rb
doorkeeper-5.5.1 lib/doorkeeper/oauth/authorization/context.rb
doorkeeper-5.5.0 lib/doorkeeper/oauth/authorization/context.rb