Class: OnebusawaySDK::Models::StopsForRouteListResponse::Data::Entry::Polyline

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/onebusaway_sdk/models/stops_for_route_list_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(polylines: nil, route_id: nil, stop_groupings: nil, stop_ids: nil) ⇒ Object

Parameters:



61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# File 'lib/onebusaway_sdk/models/stops_for_route_list_response.rb', line 61

class Polyline < OnebusawaySDK::Internal::Type::BaseModel
  # @!attribute length
  #
  #   @return [Integer, nil]
  optional :length, Integer

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

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

  # @!method initialize(length: nil, levels: nil, points: nil)
  #   @param length [Integer]
  #   @param levels [String]
  #   @param points [String]
end

Instance Attribute Details

#lengthInteger?

Returns:

  • (Integer, nil)


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

optional :length, Integer

#levelsString?

Returns:

  • (String, nil)


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

optional :levels, String

#pointsString?

Returns:

  • (String, nil)


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

optional :points, String