Method: ConvertTemp::Request#query
- Defined in:
- lib/convert_temperature/request.rb
#query(temp, from_unit, to_unit) ⇒ Object
14 15 16 17 18 |
# File 'lib/convert_temperature/request.rb', line 14 def query(temp, from_unit, to_unit) response = @client.call :convert_temp, message: {temperature: temp, from_unit: from_unit, to_unit: to_unit} result = response.to_hash[:convert_temp_response][:convert_temp_result] result end |