Class: Google::Apis::DlpV2::GooglePrivacyDlpV2Color
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::DlpV2::GooglePrivacyDlpV2Color
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - lib/google/apis/dlp_v2/classes.rb,
lib/google/apis/dlp_v2/representations.rb,
lib/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.
      1341 1342 1343  | 
    
      # File 'lib/google/apis/dlp_v2/classes.rb', line 1341 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
      1329 1330 1331  | 
    
      # File 'lib/google/apis/dlp_v2/classes.rb', line 1329 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
      1334 1335 1336  | 
    
      # File 'lib/google/apis/dlp_v2/classes.rb', line 1334 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
      1339 1340 1341  | 
    
      # File 'lib/google/apis/dlp_v2/classes.rb', line 1339 def red @red end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      1346 1347 1348 1349 1350  | 
    
      # File 'lib/google/apis/dlp_v2/classes.rb', line 1346 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  |