Class: Reporter::ResultRow

Inherits:
Object
  • Object
show all
Defined in:
lib/reporter/result_row.rb

Direct Known Subclasses

TimeOptimizedResultRow

Instance Method Summary collapse

Constructor Details

#initialize(data_set, scope_serialization) ⇒ ResultRow

Returns a new instance of ResultRow.



3
4
5
6
7
# File 'lib/reporter/result_row.rb', line 3

def initialize(data_set, scope_serialization)
	@data_set = data_set
	@scope_serialization = scope_serialization
	@field_cache = { }
end

Instance Method Details

#[](field) ⇒ Object



9
10
11
# File 'lib/reporter/result_row.rb', line 9

def [] field
	field_cache[field] ||= load_field_values(field)[field]
end