Sha256: 6ff6e8ce02e2e6863776be7704b5da17fed586bcab3f85000febc50802291a43
Contents?: true
Size: 213 Bytes
Versions: 21
Compression:
Stored size: 213 Bytes
Contents
class Kaui::Base def self.to_money(amount, currency) begin return Money.new(amount.to_f * 100, currency) rescue => e end if currency.present? Money.new(amount.to_f * 100, 'USD') end end
Version data entries
21 entries across 21 versions & 1 rubygems