Class: Google::Apis::DisplayvideoV1::PoiTargetingOptionDetails

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

Overview

Represents a targetable point of interest(POI). This will be populated in the poi_details field when targeting_type is TARGETING_TYPE_POI.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PoiTargetingOptionDetails

Returns a new instance of PoiTargetingOptionDetails.



8235
8236
8237
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 8235

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

Instance Attribute Details

#display_nameString

Output only. The display name of a POI, e.g. "Times Square", "Space Needle". Corresponds to the JSON property displayName

Returns:

  • (String)


8223
8224
8225
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 8223

def display_name
  @display_name
end

#latitudeFloat

Output only. Latitude of the POI rounding to 6th decimal place. Corresponds to the JSON property latitude

Returns:

  • (Float)


8228
8229
8230
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 8228

def latitude
  @latitude
end

#longitudeFloat

Output only. Longitude of the POI rounding to 6th decimal place. Corresponds to the JSON property longitude

Returns:

  • (Float)


8233
8234
8235
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 8233

def longitude
  @longitude
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8240
8241
8242
8243
8244
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 8240

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @latitude = args[:latitude] if args.key?(:latitude)
  @longitude = args[:longitude] if args.key?(:longitude)
end