Class: Adapters::Weather
- Inherits:
-
Object
- Object
- Adapters::Weather
- Defined in:
- lib/adapters/weather.rb
Constant Summary collapse
- CONVERTATION_KELVIN_VALUE =
273.15- CONVERTATION_FAHRENHEIT_VALUE =
459.67- FAHRENHEIT_COEFFICIENT =
1.8- CELSIUM =
'celsium'- KELVIN =
'kelvin'- FAHRENHEIT =
'fahrenheit'- ERROR_MESSAGE =
'Please, try to type correct dimension. Correct types are: Celsium, Kelvin and Fahrenheit.'
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(dimension, standard_amount) ⇒ Weather
constructor
A new instance of Weather.
Constructor Details
#initialize(dimension, standard_amount) ⇒ Weather
Returns a new instance of Weather.
13 14 15 16 |
# File 'lib/adapters/weather.rb', line 13 def initialize(dimension, standard_amount) @dimension = dimension @standard_amount = standard_amount end |
Instance Method Details
#call ⇒ Object
18 19 20 |
# File 'lib/adapters/weather.rb', line 18 def call converter(dimension, standard_amount) end |