Class: Convertator::Providers::StaticProvider

Inherits:
Middleware
  • Object
show all
Defined in:
lib/convertator/providers/static_provider.rb

Instance Attribute Summary collapse

Attributes inherited from Middleware

#prev

Instance Method Summary collapse

Instance Attribute Details

#rates=(value) ⇒ Object (writeonly)

Sets the attribute rates

Parameters:

  • value

    the value to set the attribute rates to.



4
5
6
# File 'lib/convertator/providers/static_provider.rb', line 4

def rates=(value)
  @rates = value
end

Instance Method Details

#callObject



6
7
8
# File 'lib/convertator/providers/static_provider.rb', line 6

def call
  @rates || {}
end