Class: Google::Apis::SheetsV4::ThemeColorPair

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

A pair mapping a spreadsheet theme color type to the concrete color it represents.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ThemeColorPair

Returns a new instance of ThemeColorPair.



9687
9688
9689
# File 'lib/google/apis/sheets_v4/classes.rb', line 9687

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

Instance Attribute Details

#colorGoogle::Apis::SheetsV4::ColorStyle

A color value. Corresponds to the JSON property color



9680
9681
9682
# File 'lib/google/apis/sheets_v4/classes.rb', line 9680

def color
  @color
end

#color_typeString

The type of the spreadsheet theme color. Corresponds to the JSON property colorType

Returns:

  • (String)


9685
9686
9687
# File 'lib/google/apis/sheets_v4/classes.rb', line 9685

def color_type
  @color_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9692
9693
9694
9695
# File 'lib/google/apis/sheets_v4/classes.rb', line 9692

def update!(**args)
  @color = args[:color] if args.key?(:color)
  @color_type = args[:color_type] if args.key?(:color_type)
end