Class: Reporter::ResultRow
- Inherits:
-
Object
- Object
- Reporter::ResultRow
- Defined in:
- lib/reporter/result_row.rb
Direct Known Subclasses
Instance Method Summary collapse
- #[](field) ⇒ Object
-
#initialize(data_set, scope_serialization) ⇒ ResultRow
constructor
A new instance of ResultRow.
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 |