class Latinum::ExchangeRate
A basic exchange rate for a named resource.
Attributes
factor[R]
The rate of exchange. @attribute [String]
input[R]
The name of the input resource. @attribute [String]
output[R]
The name of the output resource. @attribute [String]
Public Class Methods
new(input, output, factor)
click to toggle source
@parameter input [String] The name of the input resource. @parameter output [String] The name of the output resource. @parameter factor [Numeric] The rate of exchange.
# File lib/latinum/bank.rb, line 15 def initialize(input, output, factor) @input = input @output = output @factor = factor.to_d end