Class: Google::Apis::DisplayvideoV2::CustomLabel
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV2::CustomLabel
- 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
The key and value of a custom label.
Instance Attribute Summary collapse
-
#key ⇒ String
The key of the label.
-
#value ⇒ String
The value of the label.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CustomLabel
constructor
A new instance of CustomLabel.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CustomLabel
Returns a new instance of CustomLabel.
4307 4308 4309 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 4307 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key ⇒ String
The key of the label.
Corresponds to the JSON property key
4300 4301 4302 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 4300 def key @key end |
#value ⇒ String
The value of the label.
Corresponds to the JSON property value
4305 4306 4307 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 4305 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4312 4313 4314 4315 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 4312 def update!(**args) @key = args[:key] if args.key?(:key) @value = args[:value] if args.key?(:value) end |