Class: JsonApiable::BaseFilter

Inherits:
Object
  • Object
show all
Extended by:
FilterMatchers
Defined in:
lib/json_apiable/base_filter.rb

Overview

Base class for Filters

Instance Attribute Summary collapse

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_userObject (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_collectionObject (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_hashObject (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_filtersObject



19
20
21
# File 'lib/json_apiable/base_filter.rb', line 19

def jsonapi_allowed_filters
  {}
end