var search_data = {"index":{"searchIndex":["temperature","initializationargumentserror","invaliddegreeserror","invalidnumericortemperatureerror","invalidscaleerror","object","temperature","+()","+()","-()","-()","-@()","-@()","<=>()","<=>()","[]()","[]()","new()","new()","set_degrees()","set_degrees()","set_scale()","set_scale()","to_celsius()","to_celsius()","to_fahrenheit()","to_fahrenheit()","to_kelvin()","to_kelvin()","to_rankine()","to_rankine()","to_scale()","to_scale()"],"longSearchIndex":["basictemperature","basictemperature::initializationargumentserror","basictemperature::invaliddegreeserror","basictemperature::invalidnumericortemperatureerror","basictemperature::invalidscaleerror","object","temperature","basictemperature#+()","basictemperature#+()","basictemperature#-()","basictemperature#-()","basictemperature#-@()","basictemperature#-@()","basictemperature#<=>()","basictemperature#<=>()","basictemperature::[]()","basictemperature::[]()","basictemperature::new()","basictemperature::new()","basictemperature#set_degrees()","basictemperature#set_degrees()","basictemperature#set_scale()","basictemperature#set_scale()","basictemperature#to_celsius()","basictemperature#to_celsius()","basictemperature#to_fahrenheit()","basictemperature#to_fahrenheit()","basictemperature#to_kelvin()","basictemperature#to_kelvin()","basictemperature#to_rankine()","basictemperature#to_rankine()","basictemperature#to_scale()","basictemperature#to_scale()"],"info":[["BasicTemperature","","classes/BasicTemperature.html","","
Temperature is a simple Value Object for basic temperature operations like conversions from Celsius
to …\n"],["BasicTemperature::InitializationArgumentsError","","classes/BasicTemperature/InitializationArgumentsError.html","","
Raised when Temperature.new
is called with mixed positional and keyword arguments or without arguments …\n"],["BasicTemperature::InvalidDegreesError","","classes/BasicTemperature/InvalidDegreesError.html","","
Raised when degrees
is not a Numeric.\n"],["BasicTemperature::InvalidNumericOrTemperatureError","","classes/BasicTemperature/InvalidNumericOrTemperatureError.html","","
Raised when other
is not a Numeric or Temperature in math operations.\n"],["BasicTemperature::InvalidScaleError","","classes/BasicTemperature/InvalidScaleError.html","","
Raised when scale
can not be casted to any possible scale value. See SCALES.\n"],["Object","","classes/Object.html","",""],["Temperature","","classes/Temperature.html","","
Temperature is a simple Value Object for basic temperature operations like conversions from Celsius
to …\n"],["+","BasicTemperature","classes/BasicTemperature.html#method-i-2B","(other)","
Performs addition. Returns a new Temperature.\n\n
Temperature[20, :celsius] + Temperature[10, :celsius]\n# ...\n
\n"],["+","BasicTemperature","classes/BasicTemperature.html#method-i-2B","(other)","Performs addition. Returns a new Temperature.\n\n
Temperature[20, :celsius] + Temperature[10, :celsius]\n# ...\n
\n"],["-","BasicTemperature","classes/BasicTemperature.html#method-i-2D","(other)","Performs subtraction. Returns a new Temperature.\n\n
Temperature[20, :celsius] - Temperature[10, :celsius] ...\n
\n"],["-","BasicTemperature","classes/BasicTemperature.html#method-i-2D","(other)","Performs subtraction. Returns a new Temperature.\n\n
Temperature[20, :celsius] - Temperature[10, :celsius] ...\n
\n"],["-@","BasicTemperature","classes/BasicTemperature.html#method-i-2D-40","()","Returns a new Temperature with negated degrees
.\n\n
-Temperature[20, :celsius]\n# => -20 °C\n
\n"],["-@","BasicTemperature","classes/BasicTemperature.html#method-i-2D-40","()","Returns a new Temperature with negated degrees
.\n\n
-Temperature[20, :celsius]\n# => -20 °C\n
\n"],["<=>","BasicTemperature","classes/BasicTemperature.html#method-i-3C-3D-3E","(other)","Compares temperture with other
temperature.\n
Returns 0
if they are considered as equal.\n
Two temperatures …\n"],["<=>","BasicTemperature","classes/BasicTemperature.html#method-i-3C-3D-3E","(other)","
Compares temperture with other
temperature.\n
Returns 0
if they are considered as equal.\n
Two temperatures …\n"],["[]","BasicTemperature","classes/BasicTemperature.html#method-c-5B-5D","(*args, **kwargs)","
Creates a new instance of Temperature. Alias for new
.\n"],["[]","BasicTemperature","classes/BasicTemperature.html#method-c-5B-5D","(*args, **kwargs)","
Creates a new instance of Temperature. Alias for new
.\n"],["new","BasicTemperature","classes/BasicTemperature.html#method-c-new","(*positional_arguments, **keyword_arguments)","
Creates a new instance of Temperature. Is aliased as []
.\n"],["new","BasicTemperature","classes/BasicTemperature.html#method-c-new","(*positional_arguments, **keyword_arguments)","
Creates a new instance of Temperature. Is aliased as []
.\n"],["set_degrees","BasicTemperature","classes/BasicTemperature.html#method-i-set_degrees","(degrees)","
Returns a new Temperature with updated degrees
.\n\n
temperature = Temperature[0, :celsius]\n# => 0 °C\n\nnew_temperature ...\n
\n"],["set_degrees","BasicTemperature","classes/BasicTemperature.html#method-i-set_degrees","(degrees)","Returns a new Temperature with updated degrees
.\n\n
temperature = Temperature[0, :celsius]\n# => 0 °C\n\nnew_temperature ...\n
\n"],["set_scale","BasicTemperature","classes/BasicTemperature.html#method-i-set_scale","(scale)","Returns a new Temperature with updated scale
.\n\n
temperature = Temperature[0, :celsius]\n# => 0 °C\n\nnew_temperature ...\n
\n"],["set_scale","BasicTemperature","classes/BasicTemperature.html#method-i-set_scale","(scale)","Returns a new Temperature with updated scale
.\n\n
temperature = Temperature[0, :celsius]\n# => 0 °C\n\nnew_temperature ...\n
\n"],["to_celsius","BasicTemperature","classes/BasicTemperature.html#method-i-to_celsius","()","Converts temperature to Celsius scale. If temperature is already in Celsius, returns current temperature …\n"],["to_celsius","BasicTemperature","classes/BasicTemperature.html#method-i-to_celsius","()","
Converts temperature to Celsius scale. If temperature is already in Celsius, returns current temperature …\n"],["to_fahrenheit","BasicTemperature","classes/BasicTemperature.html#method-i-to_fahrenheit","()","
Converts temperature to Fahrenheit scale. If temperature is already in Fahrenheit, returns current temperature …\n"],["to_fahrenheit","BasicTemperature","classes/BasicTemperature.html#method-i-to_fahrenheit","()","
Converts temperature to Fahrenheit scale. If temperature is already in Fahrenheit, returns current temperature …\n"],["to_kelvin","BasicTemperature","classes/BasicTemperature.html#method-i-to_kelvin","()","
Converts temperature to Kelvin scale. If temperature is already in Kelvin, returns current\n\n
temperature ...\n
\n"],["to_kelvin","BasicTemperature","classes/BasicTemperature.html#method-i-to_kelvin","()","Converts temperature to Kelvin scale. If temperature is already in Kelvin, returns current\n\n
temperature ...\n
\n"],["to_rankine","BasicTemperature","classes/BasicTemperature.html#method-i-to_rankine","()","Converts temperature to Rankine scale. If temperature is already in Rankine, returns current temperature …\n"],["to_rankine","BasicTemperature","classes/BasicTemperature.html#method-i-to_rankine","()","
Converts temperature to Rankine scale. If temperature is already in Rankine, returns current temperature …\n"],["to_scale","BasicTemperature","classes/BasicTemperature.html#method-i-to_scale","(scale)","
Converts temperature to specific scale
. If temperature is already in desired scale
, returns current temperature …\n"],["to_scale","BasicTemperature","classes/BasicTemperature.html#method-i-to_scale","(scale)","
Converts temperature to specific scale
. If temperature is already in desired scale
, returns current temperature …\n"]]}}