Class: OnebusawaySDK::Models::StopsForAgencyListResponse::List

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/onebusaway_sdk/models/stops_for_agency_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(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)


34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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
# File 'lib/onebusaway_sdk/models/stops_for_agency_list_response.rb', line 34

class List < 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)


78
# File 'lib/onebusaway_sdk/models/stops_for_agency_list_response.rb', line 78

optional :code, String

#directionString?

Returns:

  • (String, nil)


83
# File 'lib/onebusaway_sdk/models/stops_for_agency_list_response.rb', line 83

optional :direction, String

#idString

Returns:

  • (String)


38
# File 'lib/onebusaway_sdk/models/stops_for_agency_list_response.rb', line 38

required :id, String

#latFloat

Returns:

  • (Float)


43
# File 'lib/onebusaway_sdk/models/stops_for_agency_list_response.rb', line 43

required :lat, Float

#location_typeInteger

Returns:

  • (Integer)


48
# File 'lib/onebusaway_sdk/models/stops_for_agency_list_response.rb', line 48

required :location_type, Integer, api_name: :locationType

#lonFloat

Returns:

  • (Float)


53
# File 'lib/onebusaway_sdk/models/stops_for_agency_list_response.rb', line 53

required :lon, Float

#nameString

Returns:

  • (String)


58
# File 'lib/onebusaway_sdk/models/stops_for_agency_list_response.rb', line 58

required :name, String

#parentString

Returns:

  • (String)


63
# File 'lib/onebusaway_sdk/models/stops_for_agency_list_response.rb', line 63

required :parent, String

#route_idsArray<String>

Returns:

  • (Array<String>)


68
# File 'lib/onebusaway_sdk/models/stops_for_agency_list_response.rb', line 68

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

#static_route_idsArray<String>

Returns:

  • (Array<String>)


73
# File 'lib/onebusaway_sdk/models/stops_for_agency_list_response.rb', line 73

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

#wheelchair_boardingString?

Returns:

  • (String, nil)


88
# File 'lib/onebusaway_sdk/models/stops_for_agency_list_response.rb', line 88

optional :wheelchair_boarding, String, api_name: :wheelchairBoarding