class Google::Apis::DlpV2::GooglePrivacyDlpV2Color

Represents a color in the RGB color space.

Attributes

blue[RW]

The amount of blue in the color as a value in the interval [0, 1]. Corresponds to the JSON property `blue` @return [Float]

green[RW]

The amount of green in the color as a value in the interval [0, 1]. Corresponds to the JSON property `green` @return [Float]

red[RW]

The amount of red in the color as a value in the interval [0, 1]. Corresponds to the JSON property `red` @return [Float]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dlp_v2/classes.rb, line 861
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dlp_v2/classes.rb, line 866
def update!(**args)
  @blue = args[:blue] if args.key?(:blue)
  @green = args[:green] if args.key?(:green)
  @red = args[:red] if args.key?(:red)
end