Class: OnebusawaySDK::Models::TripRetrieveResponse::Data

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

Defined Under Namespace

Classes: Entry

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(entry: , references: ) ⇒ Object

Parameters:



15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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
# File 'lib/onebusaway_sdk/models/trip_retrieve_response.rb', line 15

class Data < OnebusawaySDK::Internal::Type::BaseModel
  # @!attribute entry
  #
  #   @return [OnebusawaySDK::Models::TripRetrieveResponse::Data::Entry]
  required :entry, -> { OnebusawaySDK::Models::TripRetrieveResponse::Data::Entry }

  # @!attribute references
  #
  #   @return [OnebusawaySDK::Models::References]
  required :references, -> { OnebusawaySDK::References }

  # @!method initialize(entry:, references:)
  #   @param entry [OnebusawaySDK::Models::TripRetrieveResponse::Data::Entry]
  #   @param references [OnebusawaySDK::Models::References]

  # @see OnebusawaySDK::Models::TripRetrieveResponse::Data#entry
  class Entry < OnebusawaySDK::Internal::Type::BaseModel
    # @!attribute id
    #
    #   @return [String]
    required :id, String

    # @!attribute route_id
    #
    #   @return [String]
    required :route_id, String, api_name: :routeId

    # @!attribute service_id
    #
    #   @return [String]
    required :service_id, String, api_name: :serviceId

    # @!attribute block_id
    #
    #   @return [String, nil]
    optional :block_id, String, api_name: :blockId

    # @!attribute direction_id
    #
    #   @return [String, nil]
    optional :direction_id, String, api_name: :directionId

    # @!attribute peak_offpeak
    #
    #   @return [Integer, nil]
    optional :peak_offpeak, Integer, api_name: :peakOffpeak

    # @!attribute route_short_name
    #
    #   @return [String, nil]
    optional :route_short_name, String, api_name: :routeShortName

    # @!attribute shape_id
    #
    #   @return [String, nil]
    optional :shape_id, String, api_name: :shapeId

    # @!attribute time_zone
    #
    #   @return [String, nil]
    optional :time_zone, String, api_name: :timeZone

    # @!attribute trip_headsign
    #
    #   @return [String, nil]
    optional :trip_headsign, String, api_name: :tripHeadsign

    # @!attribute trip_short_name
    #
    #   @return [String, nil]
    optional :trip_short_name, String, api_name: :tripShortName

    # @!method initialize(id:, route_id:, service_id:, block_id: nil, direction_id: nil, peak_offpeak: nil, route_short_name: nil, shape_id: nil, time_zone: nil, trip_headsign: nil, trip_short_name: nil)
    #   @param id [String]
    #   @param route_id [String]
    #   @param service_id [String]
    #   @param block_id [String]
    #   @param direction_id [String]
    #   @param peak_offpeak [Integer]
    #   @param route_short_name [String]
    #   @param shape_id [String]
    #   @param time_zone [String]
    #   @param trip_headsign [String]
    #   @param trip_short_name [String]
  end
end

Instance Attribute Details

#entryOnebusawaySDK::Models::TripRetrieveResponse::Data::Entry



19
# File 'lib/onebusaway_sdk/models/trip_retrieve_response.rb', line 19

required :entry, -> { OnebusawaySDK::Models::TripRetrieveResponse::Data::Entry }

#referencesOnebusawaySDK::Models::References



24
# File 'lib/onebusaway_sdk/models/trip_retrieve_response.rb', line 24

required :references, -> { OnebusawaySDK::References }