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.5.0.rc2 lib/doorkeeper/oauth/authorization/context.rb
doorkeeper-5.5.0.rc1 lib/doorkeeper/oauth/authorization/context.rb