Class: Google::Apis::SheetsV4::SpreadsheetTheme

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

Represents spreadsheet theme

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

Returns a new instance of SpreadsheetTheme.



9046
9047
9048
# File 'generated/google/apis/sheets_v4/classes.rb', line 9046

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

Instance Attribute Details

#primary_font_familyString

/ Name of the primary font family. Corresponds to the JSON property primaryFontFamily

Returns:

  • (String)


9038
9039
9040
# File 'generated/google/apis/sheets_v4/classes.rb', line 9038

def primary_font_family
  @primary_font_family
end

#theme_colorsArray<Google::Apis::SheetsV4::ThemeColorPair>

The spreadsheet theme color pairs. To update you must provide all theme color pairs. Corresponds to the JSON property themeColors



9044
9045
9046
# File 'generated/google/apis/sheets_v4/classes.rb', line 9044

def theme_colors
  @theme_colors
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9051
9052
9053
9054
# File 'generated/google/apis/sheets_v4/classes.rb', line 9051

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