Class: Google::Apis::SheetsV4::SpreadsheetTheme
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::SpreadsheetTheme
- 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
-
#primary_font_family ⇒ String
/ Name of the primary font family.
-
#theme_colors ⇒ Array<Google::Apis::SheetsV4::ThemeColorPair>
The spreadsheet theme color pairs.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SpreadsheetTheme
constructor
A new instance of SpreadsheetTheme.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SpreadsheetTheme
Returns a new instance of SpreadsheetTheme.
9645 9646 9647 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 9645 def initialize(**args) update!(**args) end |
Instance Attribute Details
#primary_font_family ⇒ String
/ Name of the primary font family.
Corresponds to the JSON property primaryFontFamily
9637 9638 9639 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 9637 def primary_font_family @primary_font_family end |
#theme_colors ⇒ Array<Google::Apis::SheetsV4::ThemeColorPair>
The spreadsheet theme color pairs. To update you must provide all theme
color pairs.
Corresponds to the JSON property themeColors
9643 9644 9645 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 9643 def theme_colors @theme_colors end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9650 9651 9652 9653 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 9650 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 |