Class: Google::Apis::MybusinessV3::PlaceInfo

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

Overview

Defines an area that's represented by a place ID.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ PlaceInfo

Returns a new instance of PlaceInfo



1463
1464
1465
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1463

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

Instance Attribute Details

#nameString

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

Returns:

  • (String)


1456
1457
1458
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1456

def name
  @name
end

#place_idString

The ID of the place. Corresponds to the JSON property placeId

Returns:

  • (String)


1461
1462
1463
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1461

def place_id
  @place_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1468
1469
1470
1471
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1468

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