Class: Google::Apis::SheetsV4::TableColumnDataValidationRule

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 data validation rule for a column in a table.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TableColumnDataValidationRule

Returns a new instance of TableColumnDataValidationRule.



9939
9940
9941
# File 'lib/google/apis/sheets_v4/classes.rb', line 9939

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



9937
9938
9939
# File 'lib/google/apis/sheets_v4/classes.rb', line 9937

def condition
  @condition
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9944
9945
9946
# File 'lib/google/apis/sheets_v4/classes.rb', line 9944

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