Class: ScalarGalaxy::Models::NewPlanetWebhookEvent

Inherits:
Internal::Type::BaseModel show all
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

Instance Method Summary collapse

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

Parameters:

  • average (Float) (defaults to: nil)

    Average temperature in Kelvin

  • max (Float) (defaults to: nil)

    Maximum temperature in Kelvin

  • min (Float) (defaults to: nil)

    Minimum temperature in Kelvin



# File 'lib/galaxy-ruby/models/new_planet_webhook_event.rb', line 133

Instance Attribute Details

#atmosphereArray<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] }

#creatorScalarGalaxy::Models::User?

A user

Parameters:

Returns:



22
# File 'lib/galaxy-ruby/models/new_planet_webhook_event.rb', line 22

optional :creator, -> { ScalarGalaxy::User }

#descriptionString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


27
# File 'lib/galaxy-ruby/models/new_planet_webhook_event.rb', line 27

optional :description, String, nil?: true

#discovered_atTime?

Parameters:

  • (Time)

Returns:

  • (Time, nil)


32
# File 'lib/galaxy-ruby/models/new_planet_webhook_event.rb', line 32

optional :discovered_at, Time, api_name: :discoveredAt

#failure_callback_urlString?

URL which gets invoked upon a failed operation

Parameters:

  • (String)

Returns:

  • (String, nil)


38
# File 'lib/galaxy-ruby/models/new_planet_webhook_event.rb', line 38

optional :failure_callback_url, String, api_name: :failureCallbackUrl

#habitability_indexFloat?

A score from 0 to 1 indicating potential habitability

Parameters:

  • (Float)

Returns:

  • (Float, nil)


44
# File 'lib/galaxy-ruby/models/new_planet_webhook_event.rb', line 44

optional :habitability_index, Float, api_name: :habitabilityIndex

#idInteger

Returns the value of attribute id.

Returns:

  • (Integer)


23
24
25
# File 'sig/galaxy-ruby/models/new_planet_webhook_event.rbs', line 23

def id
  @id
end

#imageString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


49
# File 'lib/galaxy-ruby/models/new_planet_webhook_event.rb', line 49

optional :image, String, nil?: true

#last_updatedTime? (readonly)

Returns the value of attribute last_updated.

Returns:

  • (Time, nil)


53
54
55
# File 'sig/galaxy-ruby/models/new_planet_webhook_event.rbs', line 53

def last_updated
  @last_updated
end

#nameString

Parameters:

  • value (String)

Returns:

  • (String)


9
# File 'lib/galaxy-ruby/models/new_planet_webhook_event.rb', line 9

required :name, String

#physical_propertiesScalarGalaxy::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

#satellitesArray<Object>?

Parameters:

  • (::Array[top])

Returns:

  • (Array<Object>, nil)


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_urlString?

URL which gets invoked upon a successful operation

Parameters:

  • (String)

Returns:

  • (String, nil)


67
# File 'lib/galaxy-ruby/models/new_planet_webhook_event.rb', line 67

optional :success_callback_url, String, api_name: :successCallbackUrl

#tagsArray<String>?

Parameters:

  • (::Array[String])

Returns:

  • (Array<String>, nil)


72
# File 'lib/galaxy-ruby/models/new_planet_webhook_event.rb', line 72

optional :tags, ScalarGalaxy::Internal::Type::ArrayOf[String]

#typeSymbol, ...



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)

Parameters:

  • (Time)

Returns:

  • (Time)


55
# File 'sig/galaxy-ruby/models/new_planet_webhook_event.rbs', line 55

def last_updated=: (Time) -> Time

#to_hash{

Returns:

  • ({)


99
# File 'sig/galaxy-ruby/models/new_planet_webhook_event.rbs', line 99

def to_hash: -> {