Class: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2Color

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

Overview

Represents a color in the RGB color space.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2beta2Color

Returns a new instance of GooglePrivacyDlpV2beta2Color



2156
2157
2158
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 2156

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

Instance Attribute Details

#blueFloat

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

Returns:

  • (Float)


2144
2145
2146
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 2144

def blue
  @blue
end

#greenFloat

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

Returns:

  • (Float)


2149
2150
2151
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 2149

def green
  @green
end

#redFloat

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

Returns:

  • (Float)


2154
2155
2156
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 2154

def red
  @red
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2161
2162
2163
2164
2165
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 2161

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