Class: Google::Apis::DlpV2::GooglePrivacyDlpV2Color
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2::GooglePrivacyDlpV2Color
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dlp_v2/classes.rb,
generated/google/apis/dlp_v2/representations.rb,
generated/google/apis/dlp_v2/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) ⇒ GooglePrivacyDlpV2Color
constructor
A new instance of GooglePrivacyDlpV2Color.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2Color
Returns a new instance of GooglePrivacyDlpV2Color.
859 860 861 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 859 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
847 848 849 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 847 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
852 853 854 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 852 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
857 858 859 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 857 def red @red end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
864 865 866 867 868 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 864 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 |