Class: Cuprum::Rails::Actions::Middleware::Resources::Query
- Inherits:
-
Cuprum::Rails::Action
- Object
- Command
- Cuprum::Rails::Action
- Cuprum::Rails::Actions::Middleware::Resources::Query
- Includes:
- Middleware
- Defined in:
- lib/cuprum/rails/actions/middleware/resources/query.rb
Overview
Abstract middleware for performing a resource query.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#resource ⇒ Cuprum::Collections::Resource
readonly
The resource.
Attributes inherited from Cuprum::Rails::Action
Instance Method Summary collapse
-
#initialize(**resource_params) ⇒ Query
constructor
A new instance of Query.
Methods inherited from Cuprum::Rails::Action
Constructor Details
#initialize(**resource_params) ⇒ Query
Returns a new instance of Query.
14 15 16 17 18 |
# File 'lib/cuprum/rails/actions/middleware/resources/query.rb', line 14 def initialize(**resource_params) super() @resource = build_resource(**resource_params) end |
Instance Attribute Details
#resource ⇒ Cuprum::Collections::Resource (readonly)
Returns the resource.
21 22 23 |
# File 'lib/cuprum/rails/actions/middleware/resources/query.rb', line 21 def resource @resource end |