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.



1214
1215
1216
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1214

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)


1207
1208
1209
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1207

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)


1212
1213
1214
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1212

def place_name
  @place_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1219
1220
1221
1222
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1219

def update!(**args)
  @place_id = args[:place_id] if args.key?(:place_id)
  @place_name = args[:place_name] if args.key?(:place_name)
end