# File 'app/models/twinkle/summary.rb', line 22defself.empty_datapoints_hashEvent.fields.map{|name|[name,{}]}.append(['users',{}]).to_hend
Instance Method Details
#hash_datapoints ⇒ Object
14
15
16
17
18
19
20
# File 'app/models/twinkle/summary.rb', line 14defhash_datapointsdata=Event.fields.map{|name|[name,{}]}.append(['users',{}]).to_hdatapoints.eachdo|datapoint|data[datapoint.name][datapoint.value]=datapoint.countenddataend