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

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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AddConditionalFormatRuleRequest

Returns a new instance of AddConditionalFormatRuleRequest.



116
117
118
# File 'lib/google/apis/sheets_v4/classes.rb', line 116

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)


109
110
111
# File 'lib/google/apis/sheets_v4/classes.rb', line 109

def index
  @index
end

#ruleGoogle::Apis::SheetsV4::ConditionalFormatRule

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



114
115
116
# File 'lib/google/apis/sheets_v4/classes.rb', line 114

def rule
  @rule
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



121
122
123
124
# File 'lib/google/apis/sheets_v4/classes.rb', line 121

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