enspiral/economatic

View on GitHub
economatic/lib/economatic/composers/money_composer.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Economatic
  class MoneyComposer
    def self.compose(amount)
      Money.new(amount.gsub(',', '').to_f)
    end
  end
end