class ExchangeRate
A basic exchange rate for a named resource.
Definitions
def initialize(input, output, factor)
Signature
-
parameter
inputString The name of the input resource.
-
parameter
outputString The name of the output resource.
-
parameter
factorNumeric The rate of exchange.
Implementation
def initialize(input, output, factor)
@input = input
@output = output
@factor = factor.to_d
end
attr :input
The name of the input resource.
Signature
-
attribute
String
attr :output
The name of the output resource.
Signature
-
attribute
String
attr :factor
The rate of exchange.
Signature
-
attribute
String