lib/gattica/data_point.rb in tupalo-gattica-0.3.4 vs lib/gattica/data_point.rb in tupalo-gattica-0.3.5
- old
+ new
@@ -35,13 +35,21 @@
when :long
[@id, @updated, @title].each { |c| columns << c }
end
# output all dimensions
- @dimensions.map {|d| d.value}.each { |c| columns << c }
+ @dimensions.map {|d|
+ (
+ d.values.first if d.length == 1
+ )
+ }.each { |c| columns << c }
# output all metrics
- @metrics.map {|m| m.value}.each { |c| columns << c }
+ @metrics.map {|m|
+ (
+ m.values.first if d.length == 1
+ )
+ }.each { |c| columns << c }
output = CSV.generate_line(columns)
return output
end
\ No newline at end of file