Class: ScalarGalaxy::Models::NewPlanetWebhookEvent
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ScalarGalaxy::Models::NewPlanetWebhookEvent
- Defined in:
- lib/galaxy-ruby/models/new_planet_webhook_event.rb,
sig/galaxy-ruby/models/new_planet_webhook_event.rbs
Defined Under Namespace
Modules: Type Classes: Atmosphere, PhysicalProperties
Instance Attribute Summary collapse
-
#atmosphere ⇒ Array<ScalarGalaxy::Models::NewPlanetWebhookEvent::Atmosphere>?
Atmospheric composition.
-
#creator ⇒ ScalarGalaxy::Models::User?
A user.
- #description ⇒ String?
- #discovered_at ⇒ Time?
-
#failure_callback_url ⇒ String?
URL which gets invoked upon a failed operation.
-
#habitability_index ⇒ Float?
A score from 0 to 1 indicating potential habitability.
-
#id ⇒ Integer
Returns the value of attribute id.
- #image ⇒ String?
-
#last_updated ⇒ Time?
readonly
Returns the value of attribute last_updated.
- #name ⇒ String
- #physical_properties ⇒ ScalarGalaxy::Models::NewPlanetWebhookEvent::PhysicalProperties?
- #satellites ⇒ Array<Object>?
-
#success_callback_url ⇒ String?
URL which gets invoked upon a successful operation.
- #tags ⇒ Array<String>?
- #type ⇒ Symbol, ...
Instance Method Summary collapse
- #initialize(average: nil, max: nil, min: nil) ⇒ Object constructor
- #last_updated ⇒ Time readonly
- #to_hash ⇒ {
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(average: nil, max: nil, min: nil) ⇒ Object
|
|
# File 'lib/galaxy-ruby/models/new_planet_webhook_event.rb', line 133
|
Instance Attribute Details
#atmosphere ⇒ Array<ScalarGalaxy::Models::NewPlanetWebhookEvent::Atmosphere>?
Atmospheric composition
15 16 |
# File 'lib/galaxy-ruby/models/new_planet_webhook_event.rb', line 15 optional :atmosphere, -> { ScalarGalaxy::Internal::Type::ArrayOf[ScalarGalaxy::NewPlanetWebhookEvent::Atmosphere] } |
#creator ⇒ ScalarGalaxy::Models::User?
A user
22 |
# File 'lib/galaxy-ruby/models/new_planet_webhook_event.rb', line 22 optional :creator, -> { ScalarGalaxy::User } |
#description ⇒ String?
27 |
# File 'lib/galaxy-ruby/models/new_planet_webhook_event.rb', line 27 optional :description, String, nil?: true |
#discovered_at ⇒ Time?
32 |
# File 'lib/galaxy-ruby/models/new_planet_webhook_event.rb', line 32 optional :discovered_at, Time, api_name: :discoveredAt |
#failure_callback_url ⇒ String?
URL which gets invoked upon a failed operation
38 |
# File 'lib/galaxy-ruby/models/new_planet_webhook_event.rb', line 38 optional :failure_callback_url, String, api_name: :failureCallbackUrl |
#habitability_index ⇒ Float?
A score from 0 to 1 indicating potential habitability
44 |
# File 'lib/galaxy-ruby/models/new_planet_webhook_event.rb', line 44 optional :habitability_index, Float, api_name: :habitabilityIndex |
#id ⇒ Integer
Returns the value of attribute id.
23 24 25 |
# File 'sig/galaxy-ruby/models/new_planet_webhook_event.rbs', line 23 def id @id end |
#image ⇒ String?
49 |
# File 'lib/galaxy-ruby/models/new_planet_webhook_event.rb', line 49 optional :image, String, nil?: true |
#last_updated ⇒ Time? (readonly)
Returns the value of attribute last_updated.
53 54 55 |
# File 'sig/galaxy-ruby/models/new_planet_webhook_event.rbs', line 53 def last_updated @last_updated end |
#name ⇒ String
9 |
# File 'lib/galaxy-ruby/models/new_planet_webhook_event.rb', line 9 required :name, String |
#physical_properties ⇒ ScalarGalaxy::Models::NewPlanetWebhookEvent::PhysicalProperties?
54 55 56 |
# File 'lib/galaxy-ruby/models/new_planet_webhook_event.rb', line 54 optional :physical_properties, -> { ScalarGalaxy::NewPlanetWebhookEvent::PhysicalProperties }, api_name: :physicalProperties |
#satellites ⇒ Array<Object>?
61 |
# File 'lib/galaxy-ruby/models/new_planet_webhook_event.rb', line 61 optional :satellites, ScalarGalaxy::Internal::Type::ArrayOf[ScalarGalaxy::Internal::Type::Unknown] |
#success_callback_url ⇒ String?
URL which gets invoked upon a successful operation
67 |
# File 'lib/galaxy-ruby/models/new_planet_webhook_event.rb', line 67 optional :success_callback_url, String, api_name: :successCallbackUrl |
#tags ⇒ Array<String>?
72 |
# File 'lib/galaxy-ruby/models/new_planet_webhook_event.rb', line 72 optional :tags, ScalarGalaxy::Internal::Type::ArrayOf[String] |
#type ⇒ Symbol, ...
77 |
# File 'lib/galaxy-ruby/models/new_planet_webhook_event.rb', line 77 optional :type, enum: -> { ScalarGalaxy::NewPlanetWebhookEvent::Type } |
Instance Method Details
#last_updated= ⇒ Time (readonly)
55 |
# File 'sig/galaxy-ruby/models/new_planet_webhook_event.rbs', line 55
def last_updated=: (Time) -> Time
|
#to_hash ⇒ {
99 |
# File 'sig/galaxy-ruby/models/new_planet_webhook_event.rbs', line 99
def to_hash: -> {
|