Class: OnebusawaySDK::Models::StopRetrieveResponse::Data::Entry

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/onebusaway_sdk/models/stop_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: , lat: , location_type: , lon: , name: , parent: , route_ids: , static_route_ids: , code: nil, direction: nil, wheelchair_boarding: nil) ⇒ Object

Parameters:

  • id (String) (defaults to: )
  • lat (Float) (defaults to: )
  • location_type (Integer) (defaults to: )
  • lon (Float) (defaults to: )
  • name (String) (defaults to: )
  • parent (String) (defaults to: )
  • route_ids (Array<String>) (defaults to: )
  • static_route_ids (Array<String>) (defaults to: )
  • code (String) (defaults to: nil)
  • direction (String) (defaults to: nil)
  • wheelchair_boarding (String) (defaults to: nil)


# File 'lib/onebusaway_sdk/models/stop_retrieve_response.rb', line 89

Instance Attribute Details

#codeString?

Returns:

  • (String, nil)


77
# File 'lib/onebusaway_sdk/models/stop_retrieve_response.rb', line 77

optional :code, String

#directionString?

Returns:

  • (String, nil)


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

optional :direction, String

#idString

Returns:

  • (String)


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

required :id, String

#latFloat

Returns:

  • (Float)


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

required :lat, Float

#location_typeInteger

Returns:

  • (Integer)


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

required :location_type, Integer, api_name: :locationType

#lonFloat

Returns:

  • (Float)


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

required :lon, Float

#nameString

Returns:

  • (String)


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

required :name, String

#parentString

Returns:

  • (String)


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

required :parent, String

#route_idsArray<String>

Returns:

  • (Array<String>)


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

required :route_ids, OnebusawaySDK::Internal::Type::ArrayOf[String], api_name: :routeIds

#static_route_idsArray<String>

Returns:

  • (Array<String>)


70
71
72
# File 'lib/onebusaway_sdk/models/stop_retrieve_response.rb', line 70

required :static_route_ids,
OnebusawaySDK::Internal::Type::ArrayOf[String],
api_name: :staticRouteIds

#wheelchair_boardingString?

Returns:

  • (String, nil)


87
# File 'lib/onebusaway_sdk/models/stop_retrieve_response.rb', line 87

optional :wheelchair_boarding, String, api_name: :wheelchairBoarding