Class: OnebusawaySDK::Models::References::Agency

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/onebusaway_sdk/models/references.rb,
sig/onebusaway_sdk/models/references.rbs

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(agencies:, routes:, situations:, stops:, stop_times:, trips:) ⇒ Object



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
107
108
# File 'lib/onebusaway_sdk/models/references.rb', line 46

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

  # @!attribute name
  #
  #   @return [String]
  required :name, String

  # @!attribute timezone
  #
  #   @return [String]
  required :timezone, String

  # @!attribute url
  #
  #   @return [String]
  required :url, String

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

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

  # @!attribute fare_url
  #
  #   @return [String, nil]
  optional :fare_url, String, api_name: :fareUrl

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

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

  # @!attribute private_service
  #
  #   @return [Boolean, nil]
  optional :private_service, OnebusawaySDK::Internal::Type::Boolean, api_name: :privateService

  # @!method initialize(id:, name:, timezone:, url:, disclaimer: nil, email: nil, fare_url: nil, lang: nil, phone: nil, private_service: nil)
  #   @param id [String]
  #   @param name [String]
  #   @param timezone [String]
  #   @param url [String]
  #   @param disclaimer [String]
  #   @param email [String]
  #   @param fare_url [String]
  #   @param lang [String]
  #   @param phone [String]
  #   @param private_service [Boolean]
end

Instance Attribute Details

#disclaimerString?

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :disclaimer, String

#emailString?

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :email, String

#fare_urlString?

Parameters:

  • (String)

Returns:

  • (String, nil)


80
# File 'lib/onebusaway_sdk/models/references.rb', line 80

optional :fare_url, String, api_name: :fareUrl

#idString

Parameters:

  • value (String)

Returns:

  • (String)


50
# File 'lib/onebusaway_sdk/models/references.rb', line 50

required :id, String

#langString?

Parameters:

  • (String)

Returns:

  • (String, nil)


85
# File 'lib/onebusaway_sdk/models/references.rb', line 85

optional :lang, String

#nameString

Parameters:

  • value (String)

Returns:

  • (String)


55
# File 'lib/onebusaway_sdk/models/references.rb', line 55

required :name, String

#phoneString?

Parameters:

  • (String)

Returns:

  • (String, nil)


90
# File 'lib/onebusaway_sdk/models/references.rb', line 90

optional :phone, String

#private_serviceBoolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


95
# File 'lib/onebusaway_sdk/models/references.rb', line 95

optional :private_service, OnebusawaySDK::Internal::Type::Boolean, api_name: :privateService

#timezoneString

Parameters:

  • value (String)

Returns:

  • (String)


60
# File 'lib/onebusaway_sdk/models/references.rb', line 60

required :timezone, String

#urlString

Parameters:

  • value (String)

Returns:

  • (String)


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

required :url, String

Instance Method Details

#to_hash{

Returns:

  • ({)


104
# File 'sig/onebusaway_sdk/models/references.rbs', line 104

def to_hash: -> {