Class: Google::Apis::SheetsV4::UpdateConditionalFormatRuleResponse
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::UpdateConditionalFormatRuleResponse
- 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
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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ UpdateConditionalFormatRuleResponse
Returns a new instance of UpdateConditionalFormatRuleResponse
2180 2181 2182 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 2180 def initialize(**args) update!(**args) end |
Instance Attribute Details
#new_index ⇒ Fixnum
The index of the new rule.
Corresponds to the JSON property newIndex
2162 2163 2164 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 2162 def new_index @new_index end |
#new_rule ⇒ Google::Apis::SheetsV4::ConditionalFormatRule
A rule describing a conditional format.
Corresponds to the JSON property newRule
2173 2174 2175 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 2173 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
2168 2169 2170 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 2168 def old_index @old_index end |
#old_rule ⇒ Google::Apis::SheetsV4::ConditionalFormatRule
A rule describing a conditional format.
Corresponds to the JSON property oldRule
2178 2179 2180 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 2178 def old_rule @old_rule end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2185 2186 2187 2188 2189 2190 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 2185 def update!(**args) @new_index = args[:new_index] if args.key?(:new_index) @old_index = args[:old_index] if args.key?(:old_index) @new_rule = args[:new_rule] if args.key?(:new_rule) @old_rule = args[:old_rule] if args.key?(:old_rule) end |