Class: Trader::FixedConverter
- Defined in:
- lib/trade-o-matic/converters/fixed_converter.rb
Instance Attribute Summary collapse
-
#rate ⇒ Object
Returns the value of attribute rate.
Instance Method Summary collapse
-
#initialize(_rate) ⇒ FixedConverter
constructor
A new instance of FixedConverter.
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
#rate ⇒ Object
Returns the value of attribute rate.
3 4 5 |
# File 'lib/trade-o-matic/converters/fixed_converter.rb', line 3 def rate @rate end |