Class: Google::Apis::SheetsV4::BooleanCondition
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::SheetsV4::BooleanCondition
 
- 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 condition that can evaluate to true or false. BooleanConditions are used by conditional formatting, data validation, and the criteria in filters.
Instance Attribute Summary collapse
- 
  
    
      #type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The type of condition. 
- 
  
    
      #values  ⇒ Array<Google::Apis::SheetsV4::ConditionValue> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The values of the condition. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ BooleanCondition 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of BooleanCondition. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ BooleanCondition
Returns a new instance of BooleanCondition
| 1914 1915 1916 | # File 'generated/google/apis/sheets_v4/classes.rb', line 1914 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#type ⇒ String
The type of condition.
Corresponds to the JSON property type
| 1904 1905 1906 | # File 'generated/google/apis/sheets_v4/classes.rb', line 1904 def type @type end | 
#values ⇒ Array<Google::Apis::SheetsV4::ConditionValue>
The values of the condition. The number of supported values depends
on the condition type.  Some support zero values,
others one or two values,
and ConditionType.ONE_OF_LIST supports an arbitrary number of values.
Corresponds to the JSON property values
| 1912 1913 1914 | # File 'generated/google/apis/sheets_v4/classes.rb', line 1912 def values @values end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1919 1920 1921 1922 | # File 'generated/google/apis/sheets_v4/classes.rb', line 1919 def update!(**args) @type = args[:type] if args.key?(:type) @values = args[:values] if args.key?(:values) end |