Module: Reports::FilterOptionGenerator

Defined in:
app/commands/reports/filter_option_generator.rb

Defined Under Namespace

Classes: Base, Boolean, Currency, Date, Float, Month, MonthAbbreviation, Noop, Numeric, Percent, String, Text, Uuid

Constant Summary collapse

Datetime =

Do we need separate handling for Datetime? *

Date
Integer =
Decimal = Numeric
Array =
Json = Noop

Class Method Summary collapse

Class Method Details

.for(data_type) ⇒ Object

Where data_type is one of Flattener::Column::Types



7
8
9
10
# File 'app/commands/reports/filter_option_generator.rb', line 7

def self.for(data_type)
  subclass_name = data_type.to_s.classify
  const_defined?(subclass_name, false) ? const_get(subclass_name, false) : Base
end