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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/sheets_v4/classes.rb,
lib/google/apis/sheets_v4/representations.rb,
lib/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

Constructor Details

#initialize(**args) ⇒ BooleanRule

Returns a new instance of BooleanRule.



2093
2094
2095
# File 'lib/google/apis/sheets_v4/classes.rb', line 2093

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



2086
2087
2088
# File 'lib/google/apis/sheets_v4/classes.rb', line 2086

def condition
  @condition
end

#formatGoogle::Apis::SheetsV4::CellFormat

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



2091
2092
2093
# File 'lib/google/apis/sheets_v4/classes.rb', line 2091

def format
  @format
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2098
2099
2100
2101
# File 'lib/google/apis/sheets_v4/classes.rb', line 2098

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