Class: OnebusawaySDK::Models::SearchForRouteListResponse::Data

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

Defined Under Namespace

Classes: List

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(data: nil) ⇒ 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
101
102
103
104
105
106
# File 'lib/onebusaway_sdk/models/search_for_route_list_response.rb', line 15

class Data < OnebusawaySDK::Internal::Type::BaseModel
  # @!attribute limit_exceeded
  #
  #   @return [Boolean]
  required :limit_exceeded, OnebusawaySDK::Internal::Type::Boolean, api_name: :limitExceeded

  # @!attribute list
  #
  #   @return [Array<OnebusawaySDK::Models::SearchForRouteListResponse::Data::List>]
  required :list,
           -> { OnebusawaySDK::Internal::Type::ArrayOf[OnebusawaySDK::Models::SearchForRouteListResponse::Data::List] }

  # @!attribute out_of_range
  #
  #   @return [Boolean]
  required :out_of_range, OnebusawaySDK::Internal::Type::Boolean, api_name: :outOfRange

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

  # @!method initialize(limit_exceeded:, list:, out_of_range:, references:)
  #   @param limit_exceeded [Boolean]
  #   @param list [Array<OnebusawaySDK::Models::SearchForRouteListResponse::Data::List>]
  #   @param out_of_range [Boolean]
  #   @param references [OnebusawaySDK::Models::References]

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

    # @!attribute agency_id
    #
    #   @return [String]
    required :agency_id, String, api_name: :agencyId

    # @!attribute type
    #
    #   @return [Integer]
    required :type, Integer

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

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

    # @!attribute long_name
    #
    #   @return [String, nil]
    optional :long_name, String, api_name: :longName

    # @!attribute null_safe_short_name
    #
    #   @return [String, nil]
    optional :null_safe_short_name, String, api_name: :nullSafeShortName

    # @!attribute short_name
    #
    #   @return [String, nil]
    optional :short_name, String, api_name: :shortName

    # @!attribute text_color
    #
    #   @return [String, nil]
    optional :text_color, String, api_name: :textColor

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

    # @!method initialize(id:, agency_id:, type:, color: nil, description: nil, long_name: nil, null_safe_short_name: nil, short_name: nil, text_color: nil, url: nil)
    #   @param id [String]
    #   @param agency_id [String]
    #   @param type [Integer]
    #   @param color [String]
    #   @param description [String]
    #   @param long_name [String]
    #   @param null_safe_short_name [String]
    #   @param short_name [String]
    #   @param text_color [String]
    #   @param url [String]
  end
end

Instance Attribute Details

#limit_exceededBoolean

Returns:

  • (Boolean)


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

required :limit_exceeded, OnebusawaySDK::Internal::Type::Boolean, api_name: :limitExceeded

#listArray<OnebusawaySDK::Models::SearchForRouteListResponse::Data::List>



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

required :list,
-> { OnebusawaySDK::Internal::Type::ArrayOf[OnebusawaySDK::Models::SearchForRouteListResponse::Data::List] }

#out_of_rangeBoolean

Returns:

  • (Boolean)


30
# File 'lib/onebusaway_sdk/models/search_for_route_list_response.rb', line 30

required :out_of_range, OnebusawaySDK::Internal::Type::Boolean, api_name: :outOfRange

#referencesOnebusawaySDK::Models::References



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

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