Class: ClarkKent::ReportColumnConfig

Inherits:
Object
  • Object
show all
Defined in:
app/models/clark_kent/report_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ ReportColumnConfig

Returns a new instance of ReportColumnConfig.



16
17
18
# File 'app/models/clark_kent/report_config.rb', line 16

def initialize params = {}
  params.each { |key, value| send "#{key}=", value }
end

Instance Attribute Details

#custom_selectObject

Returns the value of attribute custom_select.



15
16
17
# File 'app/models/clark_kent/report_config.rb', line 15

def custom_select
  @custom_select
end

#extra_scopesObject

Returns the value of attribute extra_scopes.



15
16
17
# File 'app/models/clark_kent/report_config.rb', line 15

def extra_scopes
  @extra_scopes
end

#groupObject

Returns the value of attribute group.



15
16
17
# File 'app/models/clark_kent/report_config.rb', line 15

def group
  @group
end

#includesObject

Returns the value of attribute includes.



15
16
17
# File 'app/models/clark_kent/report_config.rb', line 15

def includes
  @includes
end

#joinsObject

Returns the value of attribute joins.



15
16
17
# File 'app/models/clark_kent/report_config.rb', line 15

def joins
  @joins
end

Returns the value of attribute link.



15
16
17
# File 'app/models/clark_kent/report_config.rb', line 15

def link
  @link
end

#nameObject

Returns the value of attribute name.



15
16
17
# File 'app/models/clark_kent/report_config.rb', line 15

def name
  @name
end

#order_sqlObject

Returns the value of attribute order_sql.



15
16
17
# File 'app/models/clark_kent/report_config.rb', line 15

def order_sql
  @order_sql
end

#summarizableObject

Returns the value of attribute summarizable.



15
16
17
# File 'app/models/clark_kent/report_config.rb', line 15

def summarizable
  @summarizable
end

#time_formatObject

Returns the value of attribute time_format.



15
16
17
# File 'app/models/clark_kent/report_config.rb', line 15

def time_format
  @time_format
end

#time_zone_columnObject

Returns the value of attribute time_zone_column.



15
16
17
# File 'app/models/clark_kent/report_config.rb', line 15

def time_zone_column
  @time_zone_column
end

#whereObject

Returns the value of attribute where.



15
16
17
# File 'app/models/clark_kent/report_config.rb', line 15

def where
  @where
end

Instance Method Details

#idObject



20
21
22
# File 'app/models/clark_kent/report_config.rb', line 20

def id
  name
end