Class: Convertator::Providers::StaticProvider
- Inherits:
-
BaseProvider
- Object
- BaseProvider
- Convertator::Providers::StaticProvider
- Defined in:
- lib/convertator/providers/static_provider.rb
Instance Attribute Summary collapse
-
#rates ⇒ Object
writeonly
Sets the attribute rates.
Instance Method Summary collapse
-
#initialize ⇒ StaticProvider
constructor
A new instance of StaticProvider.
- #new_rates ⇒ Object
Constructor Details
#initialize ⇒ StaticProvider
Returns a new instance of StaticProvider.
6 7 8 |
# File 'lib/convertator/providers/static_provider.rb', line 6 def initialize @rates = {} end |
Instance Attribute Details
#rates=(value) ⇒ Object (writeonly)
Sets the attribute rates
4 5 6 |
# File 'lib/convertator/providers/static_provider.rb', line 4 def rates=(value) @rates = value end |
Instance Method Details
#new_rates ⇒ Object
10 11 12 |
# File 'lib/convertator/providers/static_provider.rb', line 10 def new_rates @rates end |