Class: RESTFramework::Filters::QueryFilter::Not

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#qObject (readonly)

Returns the value of attribute q.



5
6
7
# File 'lib/rest_framework/filters/query_filter.rb', line 5

def q
  @q
end