Class: Google::Apis::SheetsV4::GradientRule
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::GradientRule
- 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
-
#maxpoint ⇒ Google::Apis::SheetsV4::InterpolationPoint
A single interpolation point on a gradient conditional format.
-
#midpoint ⇒ Google::Apis::SheetsV4::InterpolationPoint
A single interpolation point on a gradient conditional format.
-
#minpoint ⇒ Google::Apis::SheetsV4::InterpolationPoint
A single interpolation point on a gradient conditional format.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GradientRule
constructor
A new instance of GradientRule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GradientRule
Returns a new instance of GradientRule
1876 1877 1878 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 1876 def initialize(**args) update!(**args) end |
Instance Attribute Details
#maxpoint ⇒ Google::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
1874 1875 1876 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 1874 def maxpoint @maxpoint end |
#midpoint ⇒ Google::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
1860 1861 1862 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 1860 def midpoint @midpoint end |
#minpoint ⇒ Google::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
1867 1868 1869 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 1867 def minpoint @minpoint end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1881 1882 1883 1884 1885 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 1881 def update!(**args) @midpoint = args[:midpoint] if args.key?(:midpoint) @minpoint = args[:minpoint] if args.key?(:minpoint) @maxpoint = args[:maxpoint] if args.key?(:maxpoint) end |