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

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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ BooleanCondition

Returns a new instance of BooleanCondition.



1943
1944
1945
# File 'generated/google/apis/sheets_v4/classes.rb', line 1943

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

Instance Attribute Details

#typeString

The type of condition. Corresponds to the JSON property type

Returns:

  • (String)


1934
1935
1936
# File 'generated/google/apis/sheets_v4/classes.rb', line 1934

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



1941
1942
1943
# File 'generated/google/apis/sheets_v4/classes.rb', line 1941

def values
  @values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1948
1949
1950
1951
# File 'generated/google/apis/sheets_v4/classes.rb', line 1948

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