Class: Calculon::SingleGroupingResults

Inherits:
Results
  • Object
show all
Defined in:
lib/calculon/results.rb

Instance Attribute Summary

Attributes inherited from Results

#rows

Instance Method Summary collapse

Methods inherited from Results

create, #groupings, #initialize, #map_each_time, #time_format

Constructor Details

This class inherits a constructor from Calculon::Results

Instance Method Details

#to_a(default = nil) ⇒ Object



71
72
73
74
75
# File 'lib/calculon/results.rb', line 71

def to_a(default = nil)
  map_each_time { |key|
    fetch(key, [default]).first
  }
end