Class: Google::Apis::SheetsV4::UpdateConditionalFormatRuleResponse

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

The result of updating a conditional format rule.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpdateConditionalFormatRuleResponse

Returns a new instance of UpdateConditionalFormatRuleResponse.



11065
11066
11067
# File 'lib/google/apis/sheets_v4/classes.rb', line 11065

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

Instance Attribute Details

#new_indexFixnum

The index of the new rule. Corresponds to the JSON property newIndex

Returns:

  • (Fixnum)


11047
11048
11049
# File 'lib/google/apis/sheets_v4/classes.rb', line 11047

def new_index
  @new_index
end

#new_ruleGoogle::Apis::SheetsV4::ConditionalFormatRule

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



11052
11053
11054
# File 'lib/google/apis/sheets_v4/classes.rb', line 11052

def new_rule
  @new_rule
end

#old_indexFixnum

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

Returns:

  • (Fixnum)


11058
11059
11060
# File 'lib/google/apis/sheets_v4/classes.rb', line 11058

def old_index
  @old_index
end

#old_ruleGoogle::Apis::SheetsV4::ConditionalFormatRule

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



11063
11064
11065
# File 'lib/google/apis/sheets_v4/classes.rb', line 11063

def old_rule
  @old_rule
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11070
11071
11072
11073
11074
11075
# File 'lib/google/apis/sheets_v4/classes.rb', line 11070

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