Class: Google::Apis::CalendarV3::ColorDefinition
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::CalendarV3::ColorDefinition
 
 
- Defined in:
 - generated/google/apis/calendar_v3/classes.rb,
generated/google/apis/calendar_v3/representations.rb,
generated/google/apis/calendar_v3/representations.rb 
Instance Attribute Summary collapse
- 
  
    
      #background  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The background color associated with this color definition.
 - 
  
    
      #foreground  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The foreground color that can be used to write on top of a background with ' background' color.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ ColorDefinition 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of ColorDefinition.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ ColorDefinition
Returns a new instance of ColorDefinition
      567 568 569  | 
    
      # File 'generated/google/apis/calendar_v3/classes.rb', line 567 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#background ⇒ String
The background color associated with this color definition.
Corresponds to the JSON property background
      559 560 561  | 
    
      # File 'generated/google/apis/calendar_v3/classes.rb', line 559 def background @background end  | 
  
#foreground ⇒ String
The foreground color that can be used to write on top of a background with '
background' color.
Corresponds to the JSON property foreground
      565 566 567  | 
    
      # File 'generated/google/apis/calendar_v3/classes.rb', line 565 def foreground @foreground end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      572 573 574 575  | 
    
      # File 'generated/google/apis/calendar_v3/classes.rb', line 572 def update!(**args) @background = args[:background] if args.key?(:background) @foreground = args[:foreground] if args.key?(:foreground) end  |