Class: ActiveMetric::ReportViewModel::ColumnTemplate

Inherits:
Object
  • Object
show all
Defined in:
lib/active_metric/report_view_model.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(header, field, format_options) ⇒ ColumnTemplate

Returns a new instance of ColumnTemplate.



54
55
56
57
58
# File 'lib/active_metric/report_view_model.rb', line 54

def initialize(header, field, format_options)
  @header = header
  @field = field
  @format_options = format_options
end

Instance Attribute Details

#fieldObject (readonly)

Returns the value of attribute field.



51
52
53
# File 'lib/active_metric/report_view_model.rb', line 51

def field
  @field
end

#format_optionsObject (readonly)

Returns the value of attribute format_options.



52
53
54
# File 'lib/active_metric/report_view_model.rb', line 52

def format_options
  @format_options
end

#headerObject (readonly)

Returns the value of attribute header.



50
51
52
# File 'lib/active_metric/report_view_model.rb', line 50

def header
  @header
end