Class: Google::Apis::SheetsV4::BooleanRule

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ BooleanRule

Returns a new instance of BooleanRule.



4852
4853
4854
# File 'generated/google/apis/sheets_v4/classes.rb', line 4852

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#conditionGoogle::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



4845
4846
4847
# File 'generated/google/apis/sheets_v4/classes.rb', line 4845

def condition
  @condition
end

#formatGoogle::Apis::SheetsV4::CellFormat

The format of a cell. Corresponds to the JSON property format



4850
4851
4852
# File 'generated/google/apis/sheets_v4/classes.rb', line 4850

def format
  @format
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4857
4858
4859
4860
# File 'generated/google/apis/sheets_v4/classes.rb', line 4857

def update!(**args)
  @condition = args[:condition] if args.key?(:condition)
  @format = args[:format] if args.key?(:format)
end