Class: OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry::Stop

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

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(route_id: , schedule_date: , service_ids: , stops: , stop_trip_groupings: , trips: ) ⇒ Object

Parameters:



68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# File 'lib/onebusaway_sdk/models/schedule_for_route_retrieve_response.rb', line 68

class Stop < OnebusawaySDK::Internal::Type::BaseModel
  # @!attribute id
  #
  #   @return [String]
  required :id, String

  # @!attribute lat
  #
  #   @return [Float]
  required :lat, Float

  # @!attribute location_type
  #
  #   @return [Integer]
  required :location_type, Integer, api_name: :locationType

  # @!attribute lon
  #
  #   @return [Float]
  required :lon, Float

  # @!attribute name
  #
  #   @return [String]
  required :name, String

  # @!attribute parent
  #
  #   @return [String]
  required :parent, String

  # @!attribute route_ids
  #
  #   @return [Array<String>]
  required :route_ids, OnebusawaySDK::Internal::Type::ArrayOf[String], api_name: :routeIds

  # @!attribute static_route_ids
  #
  #   @return [Array<String>]
  required :static_route_ids,
           OnebusawaySDK::Internal::Type::ArrayOf[String],
           api_name: :staticRouteIds

  # @!attribute code
  #
  #   @return [String, nil]
  optional :code, String

  # @!attribute direction
  #
  #   @return [String, nil]
  optional :direction, String

  # @!attribute wheelchair_boarding
  #
  #   @return [String, nil]
  optional :wheelchair_boarding, String, api_name: :wheelchairBoarding

  # @!method initialize(id:, lat:, location_type:, lon:, name:, parent:, route_ids:, static_route_ids:, code: nil, direction: nil, wheelchair_boarding: nil)
  #   @param id [String]
  #   @param lat [Float]
  #   @param location_type [Integer]
  #   @param lon [Float]
  #   @param name [String]
  #   @param parent [String]
  #   @param route_ids [Array<String>]
  #   @param static_route_ids [Array<String>]
  #   @param code [String]
  #   @param direction [String]
  #   @param wheelchair_boarding [String]
end

Instance Attribute Details

#codeString?

Returns:

  • (String, nil)


114
# File 'lib/onebusaway_sdk/models/schedule_for_route_retrieve_response.rb', line 114

optional :code, String

#directionString?

Returns:

  • (String, nil)


119
# File 'lib/onebusaway_sdk/models/schedule_for_route_retrieve_response.rb', line 119

optional :direction, String

#idString

Returns:

  • (String)


72
# File 'lib/onebusaway_sdk/models/schedule_for_route_retrieve_response.rb', line 72

required :id, String

#latFloat

Returns:

  • (Float)


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

required :lat, Float

#location_typeInteger

Returns:

  • (Integer)


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

required :location_type, Integer, api_name: :locationType

#lonFloat

Returns:

  • (Float)


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

required :lon, Float

#nameString

Returns:

  • (String)


92
# File 'lib/onebusaway_sdk/models/schedule_for_route_retrieve_response.rb', line 92

required :name, String

#parentString

Returns:

  • (String)


97
# File 'lib/onebusaway_sdk/models/schedule_for_route_retrieve_response.rb', line 97

required :parent, String

#route_idsArray<String>

Returns:

  • (Array<String>)


102
# File 'lib/onebusaway_sdk/models/schedule_for_route_retrieve_response.rb', line 102

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

#static_route_idsArray<String>

Returns:

  • (Array<String>)


107
108
109
# File 'lib/onebusaway_sdk/models/schedule_for_route_retrieve_response.rb', line 107

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

#wheelchair_boardingString?

Returns:

  • (String, nil)


124
# File 'lib/onebusaway_sdk/models/schedule_for_route_retrieve_response.rb', line 124

optional :wheelchair_boarding, String, api_name: :wheelchairBoarding