Module: Pacer::Filter::CollectionFilter

Includes:
Visitors::VisitsSection
Defined in:
lib/pacer/filter/collection_filter.rb

Instance Attribute Summary collapse

Attributes included from Visitors::VisitsSection

#section, #section_route, #visitor_num

Instance Method Summary collapse

Instance Attribute Details

#comparisonObject (readonly)

Returns the value of attribute comparison.



33
34
35
# File 'lib/pacer/filter/collection_filter.rb', line 33

def comparison
  @comparison
end

#idsObject (readonly)

Returns the value of attribute ids.



33
34
35
# File 'lib/pacer/filter/collection_filter.rb', line 33

def ids
  @ids
end

#objectsObject (readonly)

Returns the value of attribute objects.



33
34
35
# File 'lib/pacer/filter/collection_filter.rb', line 33

def objects
  @objects
end

#varObject (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