Class: JsonApiServer::ModelQuery
- Inherits:
-
FilterBuilder
- Object
- FilterBuilder
- JsonApiServer::ModelQuery
- Defined in:
- lib/json_api_server/filter_builders.rb
Overview
Call a model singleton method to perform the query.
Instance Attribute Summary
Attributes inherited from FilterBuilder
#attr, #column_name, #config, #operator, #value
Instance Method Summary collapse
Methods inherited from FilterBuilder
Constructor Details
This class inherits a constructor from JsonApiServer::FilterBuilder
Instance Method Details
#to_query(model) ⇒ Object
130 131 132 133 |
# File 'lib/json_api_server/filter_builders.rb', line 130 def to_query(model) method = config.method model.send(method, value) if method.present? end |