Class: Google::Apis::MybusinessbusinessinformationV1::PlaceInfo
- Inherits:
-
Object
- Object
- Google::Apis::MybusinessbusinessinformationV1::PlaceInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/mybusinessbusinessinformation_v1/classes.rb,
lib/google/apis/mybusinessbusinessinformation_v1/representations.rb,
lib/google/apis/mybusinessbusinessinformation_v1/representations.rb
Overview
Defines an area that's represented by a place ID.
Instance Attribute Summary collapse
-
#place_id ⇒ String
Required.
-
#place_name ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PlaceInfo
constructor
A new instance of PlaceInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PlaceInfo
Returns a new instance of PlaceInfo.
1201 1202 1203 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1201 def initialize(**args) update!(**args) end |
Instance Attribute Details
#place_id ⇒ String
Required. The ID of the place. Must correspond to a region. (https://
developers.google.com/places/web-service/supported_types#table3)
Corresponds to the JSON property placeId
1194 1195 1196 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1194 def place_id @place_id end |
#place_name ⇒ String
Required. The localized name of the place. For example, Scottsdale, AZ
.
Corresponds to the JSON property placeName
1199 1200 1201 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1199 def place_name @place_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1206 1207 1208 1209 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1206 def update!(**args) @place_id = args[:place_id] if args.key?(:place_id) @place_name = args[:place_name] if args.key?(:place_name) end |