Class: Doorkeeper::OAuth::Authorization::Context
- Inherits:
-
Object
- Object
- Doorkeeper::OAuth::Authorization::Context
- Defined in:
- lib/doorkeeper/oauth/authorization/context.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#grant_type ⇒ Object
readonly
Returns the value of attribute grant_type.
-
#resource_owner ⇒ Object
readonly
Returns the value of attribute resource_owner.
-
#scopes ⇒ Object
readonly
Returns the value of attribute scopes.
Instance Method Summary collapse
-
#initialize(**attributes) ⇒ Context
constructor
A new instance of Context.
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
#client ⇒ Object (readonly)
Returns the value of attribute client.
7 8 9 |
# File 'lib/doorkeeper/oauth/authorization/context.rb', line 7 def client @client end |
#grant_type ⇒ Object (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_owner ⇒ Object (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 |
#scopes ⇒ Object (readonly)
Returns the value of attribute scopes.
7 8 9 |
# File 'lib/doorkeeper/oauth/authorization/context.rb', line 7 def scopes @scopes end |