Class: PackAPI::Querying::AbstractFilter

Inherits:
Object
  • Object
show all
Defined in:
lib/pack_api/querying/abstract_filter.rb

Direct Known Subclasses

DefaultFilter, DiscoverableFilter

Instance Method Summary collapse

Instance Method Details

#apply_to(query) ⇒ Object

Applies the filter to the given query.

Parameters:

  • query (ComposableQuery)

    the active record relation to apply the filter to



12
13
# File 'lib/pack_api/querying/abstract_filter.rb', line 12

def apply_to(query)
end

#present?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/pack_api/querying/abstract_filter.rb', line 5

def present?
  false
end