Module: ScalarGalaxy::Models::CelestialBody

Extended by:
Internal::Type::Union
Defined in:
lib/galaxy-ruby/models/celestial_body.rb,
sig/galaxy-ruby/models/celestial_body.rbs

Overview

A celestial body which can be either a planet or a satellite

See Also:

  • ScalarGalaxy::Resources::CelestialBodies#create

Defined Under Namespace

Classes: Satellite

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type, variants

Methods included from Internal::Util::SorbetRuntimeSupport

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

Methods included from Internal::Type::Converter

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

Class Method Details

.variantsArray(ScalarGalaxy::Models::Planet, ScalarGalaxy::Models::CelestialBody::Satellite)



# File 'lib/galaxy-ruby/models/celestial_body.rb', line 77

Instance Method Details

#self?.variants::Array[ScalarGalaxy::Models::celestial_body]

Returns:

  • (::Array[ScalarGalaxy::Models::celestial_body])


73
# File 'sig/galaxy-ruby/models/celestial_body.rbs', line 73

def self?.variants: -> ::Array[ScalarGalaxy::Models::celestial_body]