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



53
54
55
# File 'app/models/effective/report_scope.rb', line 53

def operation_label
  return '=' if advanced?
end

#to_sObject



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

#valueObject



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