Class: Google::Apis::StreetviewpublishV1::Place

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

Overview

Place metadata for an entity.

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) ⇒ Place

Returns a new instance of Place.



488
489
490
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 488

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

Instance Attribute Details

#language_codeString

Output-only. The language_code that the name is localized with. This should be the language_code specified in the request, but may be a fallback. Corresponds to the JSON property languageCode

Returns:

  • (String)


475
476
477
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 475

def language_code
  @language_code
end

#nameString

Output-only. The name of the place, localized to the language_code. Corresponds to the JSON property name

Returns:

  • (String)


480
481
482
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 480

def name
  @name
end

#place_idString

Place identifier, as described in https://developers.google.com/places/place-id. Corresponds to the JSON property placeId

Returns:

  • (String)


486
487
488
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 486

def place_id
  @place_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



493
494
495
496
497
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 493

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