Class: Google::Apis::SheetsV4::BooleanRule
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::SheetsV4::BooleanRule
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - generated/google/apis/sheets_v4/classes.rb,
generated/google/apis/sheets_v4/representations.rb,
generated/google/apis/sheets_v4/representations.rb 
Overview
A rule that may or may not match, depending on the condition.
Instance Attribute Summary collapse
- 
  
    
      #condition  ⇒ Google::Apis::SheetsV4::BooleanCondition 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A condition that can evaluate to true or false.
 - 
  
    
      #format  ⇒ Google::Apis::SheetsV4::CellFormat 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The format of a cell.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ BooleanRule 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of BooleanRule.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ BooleanRule
Returns a new instance of BooleanRule
      1941 1942 1943  | 
    
      # File 'generated/google/apis/sheets_v4/classes.rb', line 1941 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#condition ⇒ Google::Apis::SheetsV4::BooleanCondition
A condition that can evaluate to true or false.
BooleanConditions are used by conditional formatting,
data validation, and the criteria in filters.
Corresponds to the JSON property condition
      1934 1935 1936  | 
    
      # File 'generated/google/apis/sheets_v4/classes.rb', line 1934 def condition @condition end  | 
  
#format ⇒ Google::Apis::SheetsV4::CellFormat
The format of a cell.
Corresponds to the JSON property format
      1939 1940 1941  | 
    
      # File 'generated/google/apis/sheets_v4/classes.rb', line 1939 def format @format end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      1946 1947 1948 1949  | 
    
      # File 'generated/google/apis/sheets_v4/classes.rb', line 1946 def update!(**args) @condition = args[:condition] if args.key?(:condition) @format = args[:format] if args.key?(:format) end  |