Class: Google::Apis::SheetsV4::GradientRule

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

A rule that applies a gradient color scale format, based on the interpolation points listed. The format of a cell will vary based on its contents as compared to the values of the interpolation points.

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

Returns a new instance of GradientRule.



5731
5732
5733
# File 'generated/google/apis/sheets_v4/classes.rb', line 5731

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

Instance Attribute Details

#maxpointGoogle::Apis::SheetsV4::InterpolationPoint

A single interpolation point on a gradient conditional format. These pin the gradient color scale according to the color, type and value chosen. Corresponds to the JSON property maxpoint



5715
5716
5717
# File 'generated/google/apis/sheets_v4/classes.rb', line 5715

def maxpoint
  @maxpoint
end

#midpointGoogle::Apis::SheetsV4::InterpolationPoint

A single interpolation point on a gradient conditional format. These pin the gradient color scale according to the color, type and value chosen. Corresponds to the JSON property midpoint



5722
5723
5724
# File 'generated/google/apis/sheets_v4/classes.rb', line 5722

def midpoint
  @midpoint
end

#minpointGoogle::Apis::SheetsV4::InterpolationPoint

A single interpolation point on a gradient conditional format. These pin the gradient color scale according to the color, type and value chosen. Corresponds to the JSON property minpoint



5729
5730
5731
# File 'generated/google/apis/sheets_v4/classes.rb', line 5729

def minpoint
  @minpoint
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5736
5737
5738
5739
5740
# File 'generated/google/apis/sheets_v4/classes.rb', line 5736

def update!(**args)
  @maxpoint = args[:maxpoint] if args.key?(:maxpoint)
  @midpoint = args[:midpoint] if args.key?(:midpoint)
  @minpoint = args[:minpoint] if args.key?(:minpoint)
end