class Google::Apis::SheetsV4::BooleanRule

A rule that may or may not match, depending on the condition.

Attributes

condition[RW]

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` @return [Google::Apis::SheetsV4::BooleanCondition]

format[RW]

The format of a cell. Corresponds to the JSON property `format` @return [Google::Apis::SheetsV4::CellFormat]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/sheets_v4/classes.rb, line 2091
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/sheets_v4/classes.rb, line 2096
def update!(**args)
  @condition = args[:condition] if args.key?(:condition)
  @format = args[:format] if args.key?(:format)
end