Class: Grape::Kong::Configuration
- Inherits:
-
Object
- Object
- Grape::Kong::Configuration
- Defined in:
- lib/grape/kong/configuration.rb
Instance Attribute Summary collapse
-
#resource_owner_finder ⇒ Object
Returns the value of attribute resource_owner_finder.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 |
# File 'lib/grape/kong/configuration.rb', line 7 def initialize @resource_owner_finder = ->(value) { ::User.where(id: value).first } end |
Instance Attribute Details
#resource_owner_finder ⇒ Object
Returns the value of attribute resource_owner_finder.
5 6 7 |
# File 'lib/grape/kong/configuration.rb', line 5 def resource_owner_finder @resource_owner_finder end |