Class: Effective::ReportScope

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

Instance Method Summary collapse

Instance Method Details

#to_sObject



39
40
41
# File 'app/models/effective/report_scope.rb', line 39

def to_s
  name.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