Class: OnebusawaySDK::Models::References::Situation::Description

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/onebusaway_sdk/models/references.rb,
sig/onebusaway_sdk/models/references.rbs

Overview

See Also:

  • OnebusawaySDK::Models::References::Situation#description

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

#initializeDescription

Returns a new instance of Description.

Parameters:

  • lang: (String)
  • value: (String)


465
# File 'sig/onebusaway_sdk/models/references.rbs', line 465

def initialize: (?lang: String, ?value: String) -> void

Instance Attribute Details

#langString?

Language of the description.

Parameters:

  • (String)

Returns:

  • (String, nil)


425
# File 'lib/onebusaway_sdk/models/references.rb', line 425

optional :lang, String

#valueString?

Longer description of the situation.

Parameters:

  • (String)

Returns:

  • (String, nil)


431
# File 'lib/onebusaway_sdk/models/references.rb', line 431

optional :value, String

Instance Method Details

#to_hash{ lang: String, value: String }

Returns:

  • ({ lang: String, value: String })


467
# File 'sig/onebusaway_sdk/models/references.rbs', line 467

def to_hash: -> { lang: String, value: String }