Class: Google::Apis::MybusinessV3::PlaceInfo
- Inherits:
-
Object
- Object
- Google::Apis::MybusinessV3::PlaceInfo
- 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
-
#name ⇒ String
The localized name of the place.
-
#place_id ⇒ String
The ID of the place.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PlaceInfo
constructor
A new instance of PlaceInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#name ⇒ String
The localized name of the place. For example, Scottsdale, AZ
.
Corresponds to the JSON property name
992 993 994 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 992 def name @name end |
#place_id ⇒ String
The ID of the place.
Corresponds to the JSON property placeId
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 |