Class: Trader::FixedConverter

Inherits:
Converter show all
Defined in:
lib/trade-o-matic/converters/fixed_converter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(_rate) ⇒ FixedConverter

Returns a new instance of FixedConverter.



5
6
7
# File 'lib/trade-o-matic/converters/fixed_converter.rb', line 5

def initialize(_rate)
  @rate = _rate
end

Instance Attribute Details

#rateObject

Returns the value of attribute rate.



3
4
5
# File 'lib/trade-o-matic/converters/fixed_converter.rb', line 3

def rate
  @rate
end