Class: Google::Apis::MybusinessbusinessinformationV1::PlaceInfo

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_idString

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

Returns:

  • (String)


1194
1195
1196
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1194

def place_id
  @place_id
end

#place_nameString

Required. The localized name of the place. For example, Scottsdale, AZ. Corresponds to the JSON property placeName

Returns:

  • (String)


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