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.



999
1000
1001
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 999

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)


992
993
994
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 992

def name
  @name
end

#place_idString

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

Returns:

  • (String)


997
998
999
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 997

def place_id
  @place_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1004
1005
1006
1007
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1004

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