Class: Google::Apis::SheetsV4::UpdateConditionalFormatRuleResponse
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::UpdateConditionalFormatRuleResponse
- 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
The result of updating a conditional format rule.
Instance Attribute Summary collapse
-
#new_index ⇒ Fixnum
The index of the new rule.
-
#new_rule ⇒ Google::Apis::SheetsV4::ConditionalFormatRule
A rule describing a conditional format.
-
#old_index ⇒ Fixnum
The old index of the rule.
-
#old_rule ⇒ Google::Apis::SheetsV4::ConditionalFormatRule
A rule describing a conditional format.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UpdateConditionalFormatRuleResponse
constructor
A new instance of UpdateConditionalFormatRuleResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UpdateConditionalFormatRuleResponse
Returns a new instance of UpdateConditionalFormatRuleResponse.
10447 10448 10449 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 10447 def initialize(**args) update!(**args) end |
Instance Attribute Details
#new_index ⇒ Fixnum
The index of the new rule.
Corresponds to the JSON property newIndex
10429 10430 10431 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 10429 def new_index @new_index end |
#new_rule ⇒ Google::Apis::SheetsV4::ConditionalFormatRule
A rule describing a conditional format.
Corresponds to the JSON property newRule
10434 10435 10436 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 10434 def new_rule @new_rule end |
#old_index ⇒ Fixnum
The old index of the rule. Not set if a rule was replaced (because it is the
same as new_index).
Corresponds to the JSON property oldIndex
10440 10441 10442 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 10440 def old_index @old_index end |
#old_rule ⇒ Google::Apis::SheetsV4::ConditionalFormatRule
A rule describing a conditional format.
Corresponds to the JSON property oldRule
10445 10446 10447 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 10445 def old_rule @old_rule end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10452 10453 10454 10455 10456 10457 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 10452 def update!(**args) @new_index = args[:new_index] if args.key?(:new_index) @new_rule = args[:new_rule] if args.key?(:new_rule) @old_index = args[:old_index] if args.key?(:old_index) @old_rule = args[:old_rule] if args.key?(:old_rule) end |