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

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/onebusaway_sdk/models/agency_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



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

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

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

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

  # @see OnebusawaySDK::Models::AgencyRetrieveResponse::Data#entry
  class Entry < 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
end

Instance Attribute Details

#entryOnebusawaySDK::Models::AgencyRetrieveResponse::Data::Entry



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

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

#referencesOnebusawaySDK::Models::References



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

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