Class: ScalarGalaxy::Models::Planet::Atmosphere
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ScalarGalaxy::Models::Planet::Atmosphere
- Defined in:
- lib/galaxy-ruby/models/planet.rb,
sig/galaxy-ruby/models/planet.rbs
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(id:, name:, atmosphere: nil, creator: nil, description: nil, discovered_at: nil, failure_callback_url: nil, habitability_index: nil, image: nil, last_updated: nil, physical_properties: nil, satellites: nil, success_callback_url: nil, tags: nil, type: nil) ⇒ Atmosphere
constructor
A planet in the Scalar Galaxy.
- #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(id:, name:, atmosphere: nil, creator: nil, description: nil, discovered_at: nil, failure_callback_url: nil, habitability_index: nil, image: nil, last_updated: nil, physical_properties: nil, satellites: nil, success_callback_url: nil, tags: nil, type: nil) ⇒ Atmosphere
A planet in the Scalar Galaxy
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 |
# File 'lib/galaxy-ruby/models/planet.rb', line 124 class Atmosphere < ScalarGalaxy::Internal::Type::BaseModel # @!attribute compound # # @return [String, nil] optional :compound, String # @!attribute percentage # # @return [Float, nil] optional :percentage, Float # @!method initialize(compound: nil, percentage: nil) # @param compound [String] # @param percentage [Float] end |
Instance Attribute Details
#compound ⇒ String?
128 |
# File 'lib/galaxy-ruby/models/planet.rb', line 128 optional :compound, String |
#percentage ⇒ Float?
133 |
# File 'lib/galaxy-ruby/models/planet.rb', line 133 optional :percentage, Float |
Instance Method Details
#to_hash ⇒ { compound: String, percentage: Float }
130 |
# File 'sig/galaxy-ruby/models/planet.rbs', line 130
def to_hash: -> { compound: String, percentage: Float }
|