Class: OnebusawaySDK::Models::RouteRetrieveResponse::Data::Entry

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/onebusaway_sdk/models/route_retrieve_response.rb

Overview

See Also:

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(id: , agency_id: , type: , color: nil, description: nil, long_name: nil, null_safe_short_name: nil, short_name: nil, text_color: nil, url: nil) ⇒ Object

Parameters:

  • id (String) (defaults to: )
  • agency_id (String) (defaults to: )
  • type (Integer) (defaults to: )
  • color (String) (defaults to: nil)
  • description (String) (defaults to: nil)
  • long_name (String) (defaults to: nil)
  • null_safe_short_name (String) (defaults to: nil)
  • short_name (String) (defaults to: nil)
  • text_color (String) (defaults to: nil)
  • url (String) (defaults to: nil)


# File 'lib/onebusaway_sdk/models/route_retrieve_response.rb', line 82

Instance Attribute Details

#agency_idString

Returns:

  • (String)


40
# File 'lib/onebusaway_sdk/models/route_retrieve_response.rb', line 40

required :agency_id, String, api_name: :agencyId

#colorString?

Returns:

  • (String, nil)


50
# File 'lib/onebusaway_sdk/models/route_retrieve_response.rb', line 50

optional :color, String

#descriptionString?

Returns:

  • (String, nil)


55
# File 'lib/onebusaway_sdk/models/route_retrieve_response.rb', line 55

optional :description, String

#idString

Returns:

  • (String)


35
# File 'lib/onebusaway_sdk/models/route_retrieve_response.rb', line 35

required :id, String

#long_nameString?

Returns:

  • (String, nil)


60
# File 'lib/onebusaway_sdk/models/route_retrieve_response.rb', line 60

optional :long_name, String, api_name: :longName

#null_safe_short_nameString?

Returns:

  • (String, nil)


65
# File 'lib/onebusaway_sdk/models/route_retrieve_response.rb', line 65

optional :null_safe_short_name, String, api_name: :nullSafeShortName

#short_nameString?

Returns:

  • (String, nil)


70
# File 'lib/onebusaway_sdk/models/route_retrieve_response.rb', line 70

optional :short_name, String, api_name: :shortName

#text_colorString?

Returns:

  • (String, nil)


75
# File 'lib/onebusaway_sdk/models/route_retrieve_response.rb', line 75

optional :text_color, String, api_name: :textColor

#typeInteger

Returns:

  • (Integer)


45
# File 'lib/onebusaway_sdk/models/route_retrieve_response.rb', line 45

required :type, Integer

#urlString?

Returns:

  • (String, nil)


80
# File 'lib/onebusaway_sdk/models/route_retrieve_response.rb', line 80

optional :url, String