Class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Color
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Color
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dlp_v2beta1/classes.rb,
generated/google/apis/dlp_v2beta1/representations.rb,
generated/google/apis/dlp_v2beta1/representations.rb
Overview
Represents a color in the RGB color space.
Instance Attribute Summary collapse
-
#blue ⇒ Float
The amount of blue in the color as a value in the interval [0, 1].
-
#green ⇒ Float
The amount of green in the color as a value in the interval [0, 1].
-
#red ⇒ Float
The amount of red in the color as a value in the interval [0, 1].
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2beta1Color
constructor
A new instance of GooglePrivacyDlpV2beta1Color.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2beta1Color
Returns a new instance of GooglePrivacyDlpV2beta1Color
657 658 659 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 657 def initialize(**args) update!(**args) end |
Instance Attribute Details
#blue ⇒ Float
The amount of blue in the color as a value in the interval [0, 1].
Corresponds to the JSON property blue
645 646 647 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 645 def blue @blue end |
#green ⇒ Float
The amount of green in the color as a value in the interval [0, 1].
Corresponds to the JSON property green
650 651 652 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 650 def green @green end |
#red ⇒ Float
The amount of red in the color as a value in the interval [0, 1].
Corresponds to the JSON property red
655 656 657 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 655 def red @red end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
662 663 664 665 666 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 662 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 |