Class: DemoApiScalarGalaxy::Models::Planet::Atmosphere
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- DemoApiScalarGalaxy::Models::Planet::Atmosphere
- Defined in:
- lib/amritk-galaxy-staging/models/planet.rb,
sig/amritk-galaxy-staging/models/planet.rbs
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Atmosphere
constructor
A new instance of Atmosphere.
- #to_hash ⇒ { compound: String, percentage: Float }
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.
142 |
# File 'sig/amritk-galaxy-staging/models/planet.rbs', line 142 def initialize: (?compound: String, ?percentage: Float) -> void |
Instance Attribute Details
#compound ⇒ String?
145 |
# File 'lib/amritk-galaxy-staging/models/planet.rb', line 145 optional :compound, String |
#percentage ⇒ Float?
150 |
# File 'lib/amritk-galaxy-staging/models/planet.rb', line 150 optional :percentage, Float |
Instance Method Details
#to_hash ⇒ { compound: String, percentage: Float }
144 |
# File 'sig/amritk-galaxy-staging/models/planet.rbs', line 144 def to_hash: -> { compound: String, percentage: Float } |