Sha256: 0af6663791fb59297037e8f23167920b4902da55332580655f167be974b68ca5

Contents?: true

Size: 296 Bytes

Versions: 38

Compression:

Stored size: 296 Bytes

Contents

module XeroGateway
  module Money
    def self.included(base)
      base.extend(ClassMethods)
    end
    
    module ClassMethods
      def format_money(amount)
        if amount.class == BigDecimal
          return amount.to_s("F")
        end
        return amount
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 4 rubygems

Version Path
xero_gateway-2.7.0 lib/xero_gateway/money.rb
xero_gateway-2.6.0 lib/xero_gateway/money.rb
xero_gateway-2.5.0 lib/xero_gateway/money.rb
xero_gateway-2.4.0 lib/xero_gateway/money.rb
xero_gateway-2.3.0 lib/xero_gateway/money.rb
tlconnor-xero_gateway-1.0.1 lib/xero_gateway/money.rb
tlconnor-xero_gateway-1.0.2 lib/xero_gateway/money.rb
tlconnor-xero_gateway-1.0.3 lib/xero_gateway/money.rb
tlconnor-xero_gateway-1.0.4 lib/xero_gateway/money.rb
xero_gateway-float-2.1.7 lib/xero_gateway/money.rb
xero_gateway-float-2.1.6 lib/xero_gateway/money.rb
xero_gateway-float-2.1.4 lib/xero_gateway/money.rb
xero_gateway-float-2.1.3 lib/xero_gateway/money.rb
xero_gateway-float-2.1.1 lib/xero_gateway/money.rb
xero_gateway-float-2.0.18 lib/xero_gateway/money.rb
xero_gateway-float-2.0.17 lib/xero_gateway/money.rb
xero_gateway-float-2.0.16 lib/xero_gateway/money.rb
xero_gateway-float-2.0.15 lib/xero_gateway/money.rb
xero_gateway-2.1.0 lib/xero_gateway/money.rb
xero_gateway-n8vision-2.0.20 lib/xero_gateway/money.rb