Class: DemoApiScalarGalaxy::Models::Planet::PhysicalProperties::Temperature

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/amritk-galaxy-staging/models/planet.rb,
sig/amritk-galaxy-staging/models/planet.rbs

Overview

See Also:

  • DemoApiScalarGalaxy::Models::Planet::PhysicalProperties#temperature

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(average: nil, max: nil, min: nil) ⇒ Temperature

Returns a new instance of Temperature.

Parameters:

  • average (Float) (defaults to: nil) —

    Average temperature in Kelvin

  • max (Float) (defaults to: nil) —

    Maximum temperature in Kelvin

  • min (Float) (defaults to: nil) —

    Minimum temperature in Kelvin

  • average: (Float) (defaults to: nil)
  • max: (Float) (defaults to: nil)
  • min: (Float) (defaults to: nil)


# File 'lib/amritk-galaxy-staging/models/planet.rb', line 211

Instance Attribute Details

#average ⇒ Float?

Average temperature in Kelvin

Parameters:

  • (Float)

Returns:

  • (Float, nil)


197
# File 'lib/amritk-galaxy-staging/models/planet.rb', line 197

optional :average, Float

#max ⇒ Float?

Maximum temperature in Kelvin

Parameters:

  • (Float)

Returns:

  • (Float, nil)


203
# File 'lib/amritk-galaxy-staging/models/planet.rb', line 203

optional :max, Float

#min ⇒ Float?

Minimum temperature in Kelvin

Parameters:

  • (Float)

Returns:

  • (Float, nil)


209
# File 'lib/amritk-galaxy-staging/models/planet.rb', line 209

optional :min, Float

Instance Method Details

#to_hash ⇒ { average: Float, max: Float, min: Float }

Returns:

  • ({ average: Float, max: Float, min: Float })


205
# File 'sig/amritk-galaxy-staging/models/planet.rbs', line 205

def to_hash: -> { average: Float, max: Float, min: Float }