Class: Effective::ReportScope

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/effective/report_scope.rb

Instance Method Summary collapse

Instance Method Details

#operation_labelObject



47
48
49
# File 'app/models/effective/report_scope.rb', line 47

def operation_label
  return '=' if advanced?
end

#to_sObject



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

#valueObject



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