lib/embratel/phone_bill.rb in embratel-1.1.1 vs lib/embratel/phone_bill.rb in embratel-1.1.2

- old
+ new

@@ -5,14 +5,14 @@ def initialize(path) @payables = CSVParser.parse(path) end def calls - @calls ||= @payables.select(&:call?) + @calls ||= payables.select(&:call?) end def fees - @calls ||= @payables.select(&:fee?) + @fees ||= payables.select(&:fee?) end def total @total ||= payables.inject(0) { |sum, payable| sum += payable.cost.to_f } end