Class: ScalarGalaxy::Models::NewPlanetWebhookEvent::PhysicalProperties::Temperature

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/galaxy-ruby/models/new_planet_webhook_event.rb,
sig/galaxy-ruby/models/new_planet_webhook_event.rbs

Overview

See Also:

  • ScalarGalaxy::Models::NewPlanetWebhookEvent::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

#initializeTemperature

Returns a new instance of Temperature.

Parameters:

  • average: (Float)
  • max: (Float)
  • min: (Float)


189
# File 'sig/galaxy-ruby/models/new_planet_webhook_event.rbs', line 189

def initialize: (?average: Float, ?max: Float, ?min: Float) -> void

Instance Attribute Details

#averageFloat?

Average temperature in Kelvin

Parameters:

  • (Float)

Returns:

  • (Float, nil)


178
# File 'lib/galaxy-ruby/models/new_planet_webhook_event.rb', line 178

optional :average, Float

#maxFloat?

Maximum temperature in Kelvin

Parameters:

  • (Float)

Returns:

  • (Float, nil)


184
# File 'lib/galaxy-ruby/models/new_planet_webhook_event.rb', line 184

optional :max, Float

#minFloat?

Minimum temperature in Kelvin

Parameters:

  • (Float)

Returns:

  • (Float, nil)


190
# File 'lib/galaxy-ruby/models/new_planet_webhook_event.rb', line 190

optional :min, Float

Instance Method Details

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

Returns:

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


191
# File 'sig/galaxy-ruby/models/new_planet_webhook_event.rbs', line 191

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