Class: Google::Apis::SheetsV4::BooleanCondition

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 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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BooleanCondition

Returns a new instance of BooleanCondition.



2067
2068
2069
# File 'lib/google/apis/sheets_v4/classes.rb', line 2067

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

Instance Attribute Details

#typeString

The type of condition. Corresponds to the JSON property type

Returns:

  • (String)


2058
2059
2060
# File 'lib/google/apis/sheets_v4/classes.rb', line 2058

def type
  @type
end

#valuesArray<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



2065
2066
2067
# File 'lib/google/apis/sheets_v4/classes.rb', line 2065

def values
  @values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2072
2073
2074
2075
# File 'lib/google/apis/sheets_v4/classes.rb', line 2072

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