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

Version Path
kaui-0.15.5 app/models/kaui/base.rb
kaui-0.15.4 app/models/kaui/base.rb
kaui-0.15.3 app/models/kaui/base.rb
kaui-0.15.2 app/models/kaui/base.rb
kaui-0.15.1 app/models/kaui/base.rb
kaui-0.15.0 app/models/kaui/base.rb
kaui-0.14.2 app/models/kaui/base.rb
kaui-0.14.1 app/models/kaui/base.rb
kaui-0.14.0 app/models/kaui/base.rb
kaui-0.12.0 app/models/kaui/base.rb
kaui-0.11.0 app/models/kaui/base.rb
kaui-0.10.0 app/models/kaui/base.rb
kaui-0.9.0 app/models/kaui/base.rb
kaui-0.8.4 app/models/kaui/base.rb
kaui-0.8.3 app/models/kaui/base.rb
kaui-0.8.2 app/models/kaui/base.rb
kaui-0.8.1 app/models/kaui/base.rb
kaui-0.8.0 app/models/kaui/base.rb
kaui-0.7.2 app/models/kaui/base.rb
kaui-0.7.1 app/models/kaui/base.rb