Class: OnebusawaySDK::Models::RoutesForAgencyListResponse::Data::List

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/onebusaway_sdk/models/routes_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: , agency_id: , type: , color: nil, description: nil, long_name: nil, null_safe_short_name: nil, short_name: nil, text_color: nil, url: nil) ⇒ Object

Parameters:

  • id (String) (defaults to: )
  • agency_id (String) (defaults to: )
  • type (Integer) (defaults to: )
  • color (String) (defaults to: nil)
  • description (String) (defaults to: nil)
  • long_name (String) (defaults to: nil)
  • null_safe_short_name (String) (defaults to: nil)
  • short_name (String) (defaults to: nil)
  • text_color (String) (defaults to: nil)
  • url (String) (defaults to: nil)


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
# File 'lib/onebusaway_sdk/models/routes_for_agency_list_response.rb', line 37

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

Instance Attribute Details

#agency_idString

Returns:

  • (String)


46
# File 'lib/onebusaway_sdk/models/routes_for_agency_list_response.rb', line 46

required :agency_id, String, api_name: :agencyId

#colorString?

Returns:

  • (String, nil)


56
# File 'lib/onebusaway_sdk/models/routes_for_agency_list_response.rb', line 56

optional :color, String

#descriptionString?

Returns:

  • (String, nil)


61
# File 'lib/onebusaway_sdk/models/routes_for_agency_list_response.rb', line 61

optional :description, String

#idString

Returns:

  • (String)


41
# File 'lib/onebusaway_sdk/models/routes_for_agency_list_response.rb', line 41

required :id, String

#long_nameString?

Returns:

  • (String, nil)


66
# File 'lib/onebusaway_sdk/models/routes_for_agency_list_response.rb', line 66

optional :long_name, String, api_name: :longName

#null_safe_short_nameString?

Returns:

  • (String, nil)


71
# File 'lib/onebusaway_sdk/models/routes_for_agency_list_response.rb', line 71

optional :null_safe_short_name, String, api_name: :nullSafeShortName

#short_nameString?

Returns:

  • (String, nil)


76
# File 'lib/onebusaway_sdk/models/routes_for_agency_list_response.rb', line 76

optional :short_name, String, api_name: :shortName

#text_colorString?

Returns:

  • (String, nil)


81
# File 'lib/onebusaway_sdk/models/routes_for_agency_list_response.rb', line 81

optional :text_color, String, api_name: :textColor

#typeInteger

Returns:

  • (Integer)


51
# File 'lib/onebusaway_sdk/models/routes_for_agency_list_response.rb', line 51

required :type, Integer

#urlString?

Returns:

  • (String, nil)


86
# File 'lib/onebusaway_sdk/models/routes_for_agency_list_response.rb', line 86

optional :url, String