Module: Pacer::Filter::CollectionFilter
- Includes:
- Visitors::VisitsSection
- Defined in:
- lib/pacer/filter/collection_filter.rb
Instance Attribute Summary collapse
-
#comparison ⇒ Object
readonly
Returns the value of attribute comparison.
-
#ids ⇒ Object
readonly
Returns the value of attribute ids.
-
#objects ⇒ Object
readonly
Returns the value of attribute objects.
-
#var ⇒ Object
readonly
Returns the value of attribute var.
Attributes included from Visitors::VisitsSection
#section, #section_route, #visitor_num
Instance Method Summary collapse
- #except=(collection) ⇒ Object
- #except_var=(var) ⇒ Object
- #only=(collection) ⇒ Object
- #only_var=(var) ⇒ Object
Instance Attribute Details
#comparison ⇒ Object (readonly)
Returns the value of attribute comparison.
33 34 35 |
# File 'lib/pacer/filter/collection_filter.rb', line 33 def comparison @comparison end |
#ids ⇒ Object (readonly)
Returns the value of attribute ids.
33 34 35 |
# File 'lib/pacer/filter/collection_filter.rb', line 33 def ids @ids end |
#objects ⇒ Object (readonly)
Returns the value of attribute objects.
33 34 35 |
# File 'lib/pacer/filter/collection_filter.rb', line 33 def objects @objects end |
#var ⇒ Object (readonly)
Returns the value of attribute var.
33 34 35 |
# File 'lib/pacer/filter/collection_filter.rb', line 33 def var @var end |
Instance Method Details
#except=(collection) ⇒ Object
35 36 37 38 |
# File 'lib/pacer/filter/collection_filter.rb', line 35 def except=(collection) self.collection = collection @comparison = Contains::NOT_IN end |
#except_var=(var) ⇒ Object
40 41 42 43 44 |
# File 'lib/pacer/filter/collection_filter.rb', line 40 def except_var=(var) @var = var self.section = var @comparison = Contains::NOT_IN end |
#only=(collection) ⇒ Object
46 47 48 49 |
# File 'lib/pacer/filter/collection_filter.rb', line 46 def only=(collection) self.collection = collection @comparison = Contains::IN end |
#only_var=(var) ⇒ Object
51 52 53 54 55 |
# File 'lib/pacer/filter/collection_filter.rb', line 51 def only_var=(var) @var = var self.section = var @comparison = Contains::IN end |