lib/roi/rentability.rb in roi_calculator-0.2.0 vs lib/roi/rentability.rb in roi_calculator-0.3.0
- old
+ new
@@ -69,10 +69,10 @@
end
def to_a
dates_with_position.map do |date|
if @rentabilities[date]
- [date.strftime("%Y-%m-%d"), @rentabilities[date].share - 1]
+ [date.to_time.to_i, @rentabilities[date].share]
end
end.compact
end
protected