Class: ClarkKent::ReportFilter
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- ClarkKent::ReportFilter
- Includes:
- Cloneable
- Defined in:
- app/models/clark_kent/report_filter.rb
Direct Known Subclasses
ReportDateFilter, ReportNumberFilter, ReportObjectFilter, ReportStringFilter
Instance Attribute Summary collapse
-
#filter_value_1 ⇒ Object
Returns the value of attribute filter_value_1.
-
#filter_value_2 ⇒ Object
Returns the value of attribute filter_value_2.
Instance Method Summary collapse
- #display_name ⇒ Object
- #filter_match_param ⇒ Object
- #filter_match_params ⇒ Object
- #filter_match_value ⇒ Object
Methods included from Cloneable
#cloneable_attributes, #reset_timestamps
Instance Attribute Details
#filter_value_1 ⇒ Object
Returns the value of attribute filter_value_1.
5 6 7 |
# File 'app/models/clark_kent/report_filter.rb', line 5 def filter_value_1 @filter_value_1 end |
#filter_value_2 ⇒ Object
Returns the value of attribute filter_value_2.
5 6 7 |
# File 'app/models/clark_kent/report_filter.rb', line 5 def filter_value_2 @filter_value_2 end |
Instance Method Details
#display_name ⇒ Object
20 21 22 |
# File 'app/models/clark_kent/report_filter.rb', line 20 def display_name self.filter_name end |
#filter_match_param ⇒ Object
12 13 14 |
# File 'app/models/clark_kent/report_filter.rb', line 12 def filter_match_param self.filter_name end |
#filter_match_params ⇒ Object
8 9 10 |
# File 'app/models/clark_kent/report_filter.rb', line 8 def filter_match_params [self.filter_match_param,self.filter_match_value] end |
#filter_match_value ⇒ Object
16 17 18 |
# File 'app/models/clark_kent/report_filter.rb', line 16 def filter_match_value self.filter_value end |