Class: DemoApiScalarGalaxy::Models::Planet
Overview
Defined Under Namespace
Modules: Type
Classes: Atmosphere, PhysicalProperties
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(compound: nil, percentage: nil) ⇒ Object
|
# File 'lib/amritk-galaxy-staging/models/planet.rb', line 93
|
Instance Attribute Details
28
|
# File 'lib/amritk-galaxy-staging/models/planet.rb', line 28
optional :creator, -> { DemoApiScalarGalaxy::User }
|
#description ⇒ String?
33
|
# File 'lib/amritk-galaxy-staging/models/planet.rb', line 33
optional :description, String, nil?: true
|
#discovered_at ⇒ Time?
38
|
# File 'lib/amritk-galaxy-staging/models/planet.rb', line 38
optional :discovered_at, Time, api_name: :discoveredAt
|
#failure_callback_url ⇒ String?
URL which gets invoked upon a failed operation
44
|
# File 'lib/amritk-galaxy-staging/models/planet.rb', line 44
optional :failure_callback_url, String, api_name: :failureCallbackUrl
|
#habitability_index ⇒ Float?
A score from 0 to 1 indicating potential habitability
50
|
# File 'lib/amritk-galaxy-staging/models/planet.rb', line 50
optional :habitability_index, Float, api_name: :habitabilityIndex
|
#id ⇒ Integer
Returns the value of attribute id.
23
24
25
|
# File 'sig/amritk-galaxy-staging/models/planet.rbs', line 23
def id
@id
end
|
#image ⇒ String?
55
|
# File 'lib/amritk-galaxy-staging/models/planet.rb', line 55
optional :image, String, nil?: true
|
#last_updated ⇒ Time?
Returns the value of attribute last_updated.
55
56
57
|
# File 'sig/amritk-galaxy-staging/models/planet.rbs', line 55
def last_updated
@last_updated
end
|
#name ⇒ String
10
|
# File 'lib/amritk-galaxy-staging/models/planet.rb', line 10
required :name, String
|
60
61
62
|
# File 'lib/amritk-galaxy-staging/models/planet.rb', line 60
optional :physical_properties,
-> { DemoApiScalarGalaxy::Planet::PhysicalProperties },
api_name: :physicalProperties
|
#success_callback_url ⇒ String?
URL which gets invoked upon a successful operation
74
|
# File 'lib/amritk-galaxy-staging/models/planet.rb', line 74
optional :success_callback_url, String, api_name: :successCallbackUrl
|
79
|
# File 'lib/amritk-galaxy-staging/models/planet.rb', line 79
optional :tags, DemoApiScalarGalaxy::Internal::Type::ArrayOf[String]
|
15
|
# File 'lib/amritk-galaxy-staging/models/planet.rb', line 15
required :type, enum: -> { DemoApiScalarGalaxy::Planet::Type }
|
Class Method Details
.values ⇒ Array<Symbol>
|
# File 'lib/amritk-galaxy-staging/models/planet.rb', line 137
|
Instance Method Details
#last_updated= ⇒ Time
57
|
# File 'sig/amritk-galaxy-staging/models/planet.rbs', line 57
def last_updated=: (Time) -> Time
|
#to_hash ⇒ {
97
|
# File 'sig/amritk-galaxy-staging/models/planet.rbs', line 97
def to_hash: -> {
|