Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1TransitStation

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/places_v1/classes.rb,
lib/google/apis/places_v1/representations.rb,
lib/google/apis/places_v1/representations.rb

Overview

Represents transit-specific information for a place.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleMapsPlacesV1TransitStation

Returns a new instance of GoogleMapsPlacesV1TransitStation.



3519
3520
3521
# File 'lib/google/apis/places_v1/classes.rb', line 3519

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#agenciesArray<Google::Apis::PlacesV1::GoogleMapsPlacesV1TransitAgency>

The transit agencies that serve this station. Corresponds to the JSON property agencies



3507
3508
3509
# File 'lib/google/apis/places_v1/classes.rb', line 3507

def agencies
  @agencies
end

#display_nameGoogle::Apis::PlacesV1::GoogleTypeLocalizedText

Localized variant of a text in a particular language. Corresponds to the JSON property displayName



3512
3513
3514
# File 'lib/google/apis/places_v1/classes.rb', line 3512

def display_name
  @display_name
end

#stopsArray<Google::Apis::PlacesV1::GoogleMapsPlacesV1TransitStop>

Transit stops at this station. Corresponds to the JSON property stops



3517
3518
3519
# File 'lib/google/apis/places_v1/classes.rb', line 3517

def stops
  @stops
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3524
3525
3526
3527
3528
# File 'lib/google/apis/places_v1/classes.rb', line 3524

def update!(**args)
  @agencies = args[:agencies] if args.key?(:agencies)
  @display_name = args[:display_name] if args.key?(:display_name)
  @stops = args[:stops] if args.key?(:stops)
end