lib/onebusaway_sdk/models/agency_retrieve_response.rb
# frozen_string_literal: true module OnebusawaySDK module Models # @see OnebusawaySDK::Resources::Agency#retrieve class AgencyRetrieveResponse < OnebusawaySDK::Models::ResponseWrapper # @!attribute data # # @return [OnebusawaySDK::Models::AgencyRetrieveResponse::Data] required :data, -> { OnebusawaySDK::Models::AgencyRetrieveResponse::Data } # @!method initialize(data:) # @param data [OnebusawaySDK::Models::AgencyRetrieveResponse::Data] class Data < OnebusawaySDK::Internal::Type::BaseModel # @!attribute entry # # @return [OnebusawaySDK::Models::AgencyRetrieveResponse::Data::Entry] required :entry, -> { OnebusawaySDK::Models::AgencyRetrieveResponse::Data::Entry } # @!attribute limit_exceeded # # @return [Boolean] required :limit_exceeded, OnebusawaySDK::Internal::Type::Boolean, api_name: :limitExceeded # @!attribute references # # @return [OnebusawaySDK::Models::References] required :references, -> { OnebusawaySDK::References } # @!method initialize(entry:, limit_exceeded:, references:) # @param entry [OnebusawaySDK::Models::AgencyRetrieveResponse::Data::Entry] # @param limit_exceeded [Boolean] # @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 end end end