Class: ScalarGalaxy::Models::NewPlanetWebhookEvent::PhysicalProperties
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ScalarGalaxy::Models::NewPlanetWebhookEvent::PhysicalProperties
- Defined in:
- lib/galaxy-ruby/models/new_planet_webhook_event.rb,
sig/galaxy-ruby/models/new_planet_webhook_event.rbs
Overview
Defined Under Namespace
Classes: Temperature
Instance Attribute Summary collapse
-
#gravity ⇒ Float?
Surface gravity in Earth g.
-
#mass ⇒ Float?
Mass in Earth masses (must be greater than 0).
-
#radius ⇒ Float?
Radius in Earth radii (must be greater than 0).
- #temperature ⇒ ScalarGalaxy::Models::NewPlanetWebhookEvent::PhysicalProperties::Temperature?
Instance Method Summary collapse
- #initialize(gravity: nil, mass: nil, radius: nil, temperature: nil) ⇒ Object constructor
- #to_hash ⇒ {
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(gravity: nil, mass: nil, radius: nil, temperature: nil) ⇒ Object
|
|
# File 'lib/galaxy-ruby/models/new_planet_webhook_event.rb', line 163
|
Instance Attribute Details
#gravity ⇒ Float?
Surface gravity in Earth g
144 |
# File 'lib/galaxy-ruby/models/new_planet_webhook_event.rb', line 144 optional :gravity, Float |
#mass ⇒ Float?
Mass in Earth masses (must be greater than 0)
150 |
# File 'lib/galaxy-ruby/models/new_planet_webhook_event.rb', line 150 optional :mass, Float |
#radius ⇒ Float?
Radius in Earth radii (must be greater than 0)
156 |
# File 'lib/galaxy-ruby/models/new_planet_webhook_event.rb', line 156 optional :radius, Float |
#temperature ⇒ ScalarGalaxy::Models::NewPlanetWebhookEvent::PhysicalProperties::Temperature?
161 |
# File 'lib/galaxy-ruby/models/new_planet_webhook_event.rb', line 161 optional :temperature, -> { ScalarGalaxy::NewPlanetWebhookEvent::PhysicalProperties::Temperature } |
Instance Method Details
#to_hash ⇒ {
167 |
# File 'sig/galaxy-ruby/models/new_planet_webhook_event.rbs', line 167
def to_hash: -> {
|