Class: Google::Apis::SheetsV4::ThemeColorPair
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::ThemeColorPair
- 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 pair mapping a spreadsheet theme color type to the concrete color it represents.
Instance Attribute Summary collapse
-
#color ⇒ Google::Apis::SheetsV4::ColorStyle
A color value.
-
#color_type ⇒ String
The type of the spreadsheet theme color.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ThemeColorPair
constructor
A new instance of ThemeColorPair.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ThemeColorPair
Returns a new instance of ThemeColorPair.
9660 9661 9662 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 9660 def initialize(**args) update!(**args) end |
Instance Attribute Details
#color ⇒ Google::Apis::SheetsV4::ColorStyle
A color value.
Corresponds to the JSON property color
9653 9654 9655 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 9653 def color @color end |
#color_type ⇒ String
The type of the spreadsheet theme color.
Corresponds to the JSON property colorType
9658 9659 9660 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 9658 def color_type @color_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9665 9666 9667 9668 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 9665 def update!(**args) @color = args[:color] if args.key?(:color) @color_type = args[:color_type] if args.key?(:color_type) end |