Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAttribution

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

Overview

Information about data providers of this place.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleMapsPlacesV1PlaceAttribution

Returns a new instance of GoogleMapsPlacesV1PlaceAttribution.



1711
1712
1713
# File 'lib/google/apis/places_v1/classes.rb', line 1711

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

Instance Attribute Details

#providerString

Name of the Place's data provider. Corresponds to the JSON property provider

Returns:

  • (String)


1704
1705
1706
# File 'lib/google/apis/places_v1/classes.rb', line 1704

def provider
  @provider
end

#provider_uriString

URI to the Place's data provider. Corresponds to the JSON property providerUri

Returns:

  • (String)


1709
1710
1711
# File 'lib/google/apis/places_v1/classes.rb', line 1709

def provider_uri
  @provider_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1716
1717
1718
1719
# File 'lib/google/apis/places_v1/classes.rb', line 1716

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