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
47 48 49 |
# File 'app/models/effective/report_scope.rb', line 47 def operation_label return '=' if advanced? end |
#to_s ⇒ Object
39 40 41 |
# File 'app/models/effective/report_scope.rb', line 39 def to_s [name, operation_label, value].compact.join(' ').presence || 'report scope' end |
#value ⇒ Object
43 44 45 |
# File 'app/models/effective/report_scope.rb', line 43 def value value_date || value_decimal || value_integer || value_price || value_string.presence || value_boolean end |