Class: DemoApiScalarGalaxy::Models::Planet::Atmosphere

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

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 ⇒ Atmosphere

Returns a new instance of Atmosphere.

Parameters:

  • compound: (String)
  • percentage: (Float)


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

def initialize: (?compound: String, ?percentage: Float) -> void

Instance Attribute Details

#compound ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :compound, String

#percentage ⇒ Float?

Parameters:

  • (Float)

Returns:

  • (Float, nil)


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

optional :percentage, Float

Instance Method Details

#to_hash ⇒ { compound: String, percentage: Float }

Returns:

  • ({ compound: String, percentage: Float })


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

def to_hash: -> { compound: String, percentage: Float }