Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceParkingOptions

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

Information about parking options for the place. A parking lot could support more than one option at the same time.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleMapsPlacesV1PlaceParkingOptions

Returns a new instance of GoogleMapsPlacesV1PlaceParkingOptions.



1109
1110
1111
# File 'lib/google/apis/places_v1/classes.rb', line 1109

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

Instance Attribute Details

#free_garage_parkingBoolean Also known as: free_garage_parking?

Place offers free garage parking. Corresponds to the JSON property freeGarageParking

Returns:

  • (Boolean)


1070
1071
1072
# File 'lib/google/apis/places_v1/classes.rb', line 1070

def free_garage_parking
  @free_garage_parking
end

#free_parking_lotBoolean Also known as: free_parking_lot?

Place offers free parking lots. Corresponds to the JSON property freeParkingLot

Returns:

  • (Boolean)


1076
1077
1078
# File 'lib/google/apis/places_v1/classes.rb', line 1076

def free_parking_lot
  @free_parking_lot
end

#free_street_parkingBoolean Also known as: free_street_parking?

Place offers free street parking. Corresponds to the JSON property freeStreetParking

Returns:

  • (Boolean)


1082
1083
1084
# File 'lib/google/apis/places_v1/classes.rb', line 1082

def free_street_parking
  @free_street_parking
end

Place offers paid garage parking. Corresponds to the JSON property paidGarageParking

Returns:

  • (Boolean)


1088
1089
1090
# File 'lib/google/apis/places_v1/classes.rb', line 1088

def paid_garage_parking
  @paid_garage_parking
end

Place offers paid parking lots. Corresponds to the JSON property paidParkingLot

Returns:

  • (Boolean)


1094
1095
1096
# File 'lib/google/apis/places_v1/classes.rb', line 1094

def paid_parking_lot
  @paid_parking_lot
end

Place offers paid street parking. Corresponds to the JSON property paidStreetParking

Returns:

  • (Boolean)


1100
1101
1102
# File 'lib/google/apis/places_v1/classes.rb', line 1100

def paid_street_parking
  @paid_street_parking
end

#valet_parkingBoolean Also known as: valet_parking?

Place offers valet parking. Corresponds to the JSON property valetParking

Returns:

  • (Boolean)


1106
1107
1108
# File 'lib/google/apis/places_v1/classes.rb', line 1106

def valet_parking
  @valet_parking
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1114
1115
1116
1117
1118
1119
1120
1121
1122
# File 'lib/google/apis/places_v1/classes.rb', line 1114

def update!(**args)
  @free_garage_parking = args[:free_garage_parking] if args.key?(:free_garage_parking)
  @free_parking_lot = args[:free_parking_lot] if args.key?(:free_parking_lot)
  @free_street_parking = args[:free_street_parking] if args.key?(:free_street_parking)
  @paid_garage_parking = args[:paid_garage_parking] if args.key?(:paid_garage_parking)
  @paid_parking_lot = args[:paid_parking_lot] if args.key?(:paid_parking_lot)
  @paid_street_parking = args[:paid_street_parking] if args.key?(:paid_street_parking)
  @valet_parking = args[:valet_parking] if args.key?(:valet_parking)
end