Class: ActiveMetric::ReportViewModel::CellViewModel

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(value, format_options) ⇒ CellViewModel

Returns a new instance of CellViewModel.



99
100
101
102
# File 'lib/active_metric/report_view_model.rb', line 99

def initialize(value, format_options)
  @value = value
  @format_options = format_options
end

Instance Attribute Details

#format_optionsObject (readonly)

Returns the value of attribute format_options.



97
98
99
# File 'lib/active_metric/report_view_model.rb', line 97

def format_options
  @format_options
end

#valueObject (readonly)

Returns the value of attribute value.



96
97
98
# File 'lib/active_metric/report_view_model.rb', line 96

def value
  @value
end