Class: DemoApiScalarGalaxy::Models::Satellite
Defined Under Namespace
Modules: Type
Classes: Orbit
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
==, #==, #[], 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
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(name:, type:, id: nil, description: nil, diameter: nil, orbit: nil) ⇒ Object
Every satellite in the Scalar Galaxy
|
# File 'lib/amritk-galaxy-staging/models/satellite.rb', line 39
|
Instance Attribute Details
#description ⇒ String?
19
|
# File 'lib/amritk-galaxy-staging/models/satellite.rb', line 19
optional :description, String, nil?: true
|
#diameter ⇒ Float?
25
|
# File 'lib/amritk-galaxy-staging/models/satellite.rb', line 25
optional :diameter, Float
|
#id ⇒ Integer?
Returns the value of attribute id.
18
19
20
|
# File 'sig/amritk-galaxy-staging/models/satellite.rbs', line 18
def id
@id
end
|
#name ⇒ String
9
|
# File 'lib/amritk-galaxy-staging/models/satellite.rb', line 9
required :name, String
|
30
|
# File 'lib/amritk-galaxy-staging/models/satellite.rb', line 30
optional :orbit, -> { DemoApiScalarGalaxy::Satellite::Orbit }
|
14
|
# File 'lib/amritk-galaxy-staging/models/satellite.rb', line 14
required :type, enum: -> { DemoApiScalarGalaxy::Satellite::Type }
|
Class Method Details
.values ⇒ Array<Symbol>
|
# File 'lib/amritk-galaxy-staging/models/satellite.rb', line 63
|
Instance Method Details
#id= ⇒ Integer
20
|
# File 'sig/amritk-galaxy-staging/models/satellite.rbs', line 20
def id=: (Integer) -> Integer
|
#to_hash ⇒ {
43
|
# File 'sig/amritk-galaxy-staging/models/satellite.rbs', line 43
def to_hash: -> {
|