class Google::Apis::SheetsV4::GradientRule

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.

Attributes

maxpoint[RW]

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` @return [Google::Apis::SheetsV4::InterpolationPoint]

midpoint[RW]

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` @return [Google::Apis::SheetsV4::InterpolationPoint]

minpoint[RW]

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` @return [Google::Apis::SheetsV4::InterpolationPoint]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/sheets_v4/classes.rb, line 5844
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/sheets_v4/classes.rb, line 5849
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