Class: Google::Apis::SheetsV4::AddConditionalFormatRuleRequest

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

Adds a new conditional format rule at the given index. All subsequent rules' indexes are incremented.

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) ⇒ AddConditionalFormatRuleRequest

Returns a new instance of AddConditionalFormatRuleRequest.



1095
1096
1097
# File 'generated/google/apis/sheets_v4/classes.rb', line 1095

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

Instance Attribute Details

#indexFixnum

The zero-based index where the rule should be inserted. Corresponds to the JSON property index

Returns:

  • (Fixnum)


1093
1094
1095
# File 'generated/google/apis/sheets_v4/classes.rb', line 1093

def index
  @index
end

#ruleGoogle::Apis::SheetsV4::ConditionalFormatRule

A rule describing a conditional format. Corresponds to the JSON property rule



1088
1089
1090
# File 'generated/google/apis/sheets_v4/classes.rb', line 1088

def rule
  @rule
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1100
1101
1102
1103
# File 'generated/google/apis/sheets_v4/classes.rb', line 1100

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