Latinum SourceLatinumExchangeRate

class ExchangeRate

A basic exchange rate for a named resource.

Definitions

def initialize(input, output, factor)

Signature

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.

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