Class: Effective::ReportScope
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Effective::ReportScope
- Defined in:
- app/models/effective/report_scope.rb
Instance Method Summary collapse
Instance Method Details
#operation_label ⇒ Object
53 54 55 |
# File 'app/models/effective/report_scope.rb', line 53 def operation_label return '=' if advanced? end |
#to_s ⇒ Object
45 46 47 |
# File 'app/models/effective/report_scope.rb', line 45 def to_s [name, operation_label, value].compact.join(' ').presence || 'report scope' end |
#value ⇒ Object
49 50 51 |
# File 'app/models/effective/report_scope.rb', line 49 def value value_date || value_decimal || value_integer || value_price || value_string.presence || value_boolean end |