Class: OnebusawaySDK::Models::AgencyRetrieveResponse::Data::Entry

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

Overview

See Also:

  • OnebusawaySDK::Models::AgencyRetrieveResponse::Data#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(id:, name:, timezone:, url:, disclaimer: nil, email: nil, fare_url: nil, lang: nil, phone: nil, private_service: nil) ⇒ Object

Parameters:

  • id (String)
  • name (String)
  • timezone (String)
  • url (String)
  • disclaimer (String) (defaults to: nil)
  • email (String) (defaults to: nil)
  • fare_url (String) (defaults to: nil)
  • lang (String) (defaults to: nil)
  • phone (String) (defaults to: nil)
  • private_service (Boolean) (defaults to: nil)


# File 'lib/onebusaway_sdk/models/agency_retrieve_response.rb', line 82

Instance Attribute Details

#disclaimer ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :disclaimer, String

#email ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :email, String

#fare_url ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :fare_url, String, api_name: :fareUrl

#id ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


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

required :id, String

#lang ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :lang, String

#name ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


40
# File 'lib/onebusaway_sdk/models/agency_retrieve_response.rb', line 40

required :name, String

#phone ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :phone, String

#private_service ⇒ Boolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


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

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

#timezone ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


45
# File 'lib/onebusaway_sdk/models/agency_retrieve_response.rb', line 45

required :timezone, String

#url ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


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

required :url, String

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


102
# File 'sig/onebusaway_sdk/models/agency_retrieve_response.rbs', line 102

def to_hash: -> {