Class: Doorkeeper::OAuth::Authorization::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/doorkeeper/oauth/authorization/context.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**attributes) ⇒ Context

Returns a new instance of Context.


9
10
11
12
13
# File 'lib/doorkeeper/oauth/authorization/context.rb', line 9

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

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client


7
8
9
# File 'lib/doorkeeper/oauth/authorization/context.rb', line 7

def client
  @client
end

#grant_typeObject (readonly)

Returns the value of attribute grant_type


7
8
9
# File 'lib/doorkeeper/oauth/authorization/context.rb', line 7

def grant_type
  @grant_type
end

#resource_ownerObject (readonly)

Returns the value of attribute resource_owner


7
8
9
# File 'lib/doorkeeper/oauth/authorization/context.rb', line 7

def resource_owner
  @resource_owner
end

#scopesObject (readonly)

Returns the value of attribute scopes


7
8
9
# File 'lib/doorkeeper/oauth/authorization/context.rb', line 7

def scopes
  @scopes
end