Class: OnebusawaySDK::Models::References::Situation::Summary

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#summary

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

#initializeSummary

Returns a new instance of Summary.

Parameters:

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


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

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

Instance Attribute Details

#langString?

Language of the summary.

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :lang, String

#valueString?

Short summary of the situation.

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :value, String

Instance Method Details

#to_hash{ lang: String, value: String }

Returns:

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


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

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