Class: Google::Apis::DocsV1::RgbColor
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::DocsV1::RgbColor
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - lib/google/apis/docs_v1/classes.rb,
lib/google/apis/docs_v1/representations.rb,
lib/google/apis/docs_v1/representations.rb 
Overview
An RGB color.
Instance Attribute Summary collapse
- 
  
    
      #blue  ⇒ Float 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The blue component of the color, from 0.0 to 1.0.
 - 
  
    
      #green  ⇒ Float 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The green component of the color, from 0.0 to 1.0.
 - 
  
    
      #red  ⇒ Float 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The red component of the color, from 0.0 to 1.0.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ RgbColor 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of RgbColor.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ RgbColor
Returns a new instance of RgbColor.
      4626 4627 4628  | 
    
      # File 'lib/google/apis/docs_v1/classes.rb', line 4626 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#blue ⇒ Float
The blue component of the color, from 0.0 to 1.0.
Corresponds to the JSON property blue
      4614 4615 4616  | 
    
      # File 'lib/google/apis/docs_v1/classes.rb', line 4614 def blue @blue end  | 
  
#green ⇒ Float
The green component of the color, from 0.0 to 1.0.
Corresponds to the JSON property green
      4619 4620 4621  | 
    
      # File 'lib/google/apis/docs_v1/classes.rb', line 4619 def green @green end  | 
  
#red ⇒ Float
The red component of the color, from 0.0 to 1.0.
Corresponds to the JSON property red
      4624 4625 4626  | 
    
      # File 'lib/google/apis/docs_v1/classes.rb', line 4624 def red @red end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      4631 4632 4633 4634 4635  | 
    
      # File 'lib/google/apis/docs_v1/classes.rb', line 4631 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  |