Class: JsonApiable::BaseFilter
- Inherits:
-
Object
- Object
- JsonApiable::BaseFilter
- Extended by:
- FilterMatchers
- Defined in:
- lib/json_apiable/base_filter.rb
Overview
Base class for Filters
Instance Attribute Summary collapse
-
#current_user ⇒ Object
readonly
Returns the value of attribute current_user.
-
#jsonapi_collection ⇒ Object
readonly
Returns the value of attribute jsonapi_collection.
-
#jsonapi_filter_hash ⇒ Object
readonly
Returns the value of attribute jsonapi_filter_hash.
Class Method Summary collapse
Methods included from FilterMatchers
any_non_blank_matcher, boolean_matcher, datetime_matcher, handle_error, ids_matcher, matches?, true_matcher
Instance Attribute Details
#current_user ⇒ Object (readonly)
Returns the value of attribute current_user.
8 9 10 |
# File 'lib/json_apiable/base_filter.rb', line 8 def current_user @current_user end |
#jsonapi_collection ⇒ Object (readonly)
Returns the value of attribute jsonapi_collection.
8 9 10 |
# File 'lib/json_apiable/base_filter.rb', line 8 def jsonapi_collection @jsonapi_collection end |
#jsonapi_filter_hash ⇒ Object (readonly)
Returns the value of attribute jsonapi_filter_hash.
8 9 10 |
# File 'lib/json_apiable/base_filter.rb', line 8 def jsonapi_filter_hash @jsonapi_filter_hash end |
Class Method Details
.jsonapi_allowed_filters ⇒ Object
19 20 21 |
# File 'lib/json_apiable/base_filter.rb', line 19 def jsonapi_allowed_filters {} end |