Class: Google::Apis::DisplayvideoV2::PoiTargetingOptionDetails
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV2::PoiTargetingOptionDetails
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/displayvideo_v2/classes.rb,
lib/google/apis/displayvideo_v2/representations.rb,
lib/google/apis/displayvideo_v2/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
-
#display_name ⇒ String
Output only.
-
#latitude ⇒ Float
Output only.
-
#longitude ⇒ Float
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PoiTargetingOptionDetails
constructor
A new instance of PoiTargetingOptionDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PoiTargetingOptionDetails
Returns a new instance of PoiTargetingOptionDetails.
10110 10111 10112 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 10110 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
Output only. The display name of a POI(e.g. "Times Square", "Space Needle"),
followed by its full address if available.
Corresponds to the JSON property displayName
10098 10099 10100 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 10098 def display_name @display_name end |
#latitude ⇒ Float
Output only. Latitude of the POI rounding to 6th decimal place.
Corresponds to the JSON property latitude
10103 10104 10105 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 10103 def latitude @latitude end |
#longitude ⇒ Float
Output only. Longitude of the POI rounding to 6th decimal place.
Corresponds to the JSON property longitude
10108 10109 10110 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 10108 def longitude @longitude end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10115 10116 10117 10118 10119 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 10115 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 |