Class: Google::Apis::DisplayvideoV2::CustomLabel

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CustomLabel

Returns a new instance of CustomLabel.



4303
4304
4305
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 4303

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

Instance Attribute Details

#keyString

The key of the label. Corresponds to the JSON property key

Returns:

  • (String)


4296
4297
4298
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 4296

def key
  @key
end

#valueString

The value of the label. Corresponds to the JSON property value

Returns:

  • (String)


4301
4302
4303
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 4301

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4308
4309
4310
4311
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 4308

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