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