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

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 pair mapping a spreadsheet theme color type to the concrete color it represents.

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

Returns a new instance of ThemeColorPair.



9981
9982
9983
# File 'generated/google/apis/sheets_v4/classes.rb', line 9981

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

Instance Attribute Details

#colorGoogle::Apis::SheetsV4::ColorStyle

A color value. Corresponds to the JSON property color



9974
9975
9976
# File 'generated/google/apis/sheets_v4/classes.rb', line 9974

def color
  @color
end

#color_typeString

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

Returns:

  • (String)


9979
9980
9981
# File 'generated/google/apis/sheets_v4/classes.rb', line 9979

def color_type
  @color_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9986
9987
9988
9989
# File 'generated/google/apis/sheets_v4/classes.rb', line 9986

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