Sha256: 8cde36bd6ea3630c3dcc500543382c5a6d6a241d7ac43f32510007f34abe58ee

Contents?: true

Size: 212 Bytes

Versions: 1

Compression:

Stored size: 212 Bytes

Contents

module Ec2spec
  module Calculator
    module ManualPriceCalculator
      def currency_unit_price(dollar_price)
        Money.new(dollar_price.to_f * @dollar_exchange_rate.to_f, :USD)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ec2spec-0.1.3 lib/ec2spec/calculator/manual_price_calculator.rb