Class: RESTFramework::Filters::QueryFilter::Not
- Inherits:
-
Object
- Object
- RESTFramework::Filters::QueryFilter::Not
- Defined in:
- lib/rest_framework/filters/query_filter.rb
Overview
Wrapper to indicate a type of query that must be negated with ‘where.not(…)`.
Instance Attribute Summary collapse
-
#q ⇒ Object
readonly
Returns the value of attribute q.
Instance Method Summary collapse
-
#initialize(q) ⇒ Not
constructor
A new instance of Not.
Constructor Details
#initialize(q) ⇒ Not
Returns a new instance of Not.
7 8 9 |
# File 'lib/rest_framework/filters/query_filter.rb', line 7 def initialize(q) @q = q end |
Instance Attribute Details
#q ⇒ Object (readonly)
Returns the value of attribute q.
5 6 7 |
# File 'lib/rest_framework/filters/query_filter.rb', line 5 def q @q end |