Class: Google::Apis::SheetsV4::SpreadsheetProperties
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::SpreadsheetProperties
- 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
Properties of a spreadsheet.
Instance Attribute Summary collapse
-
#auto_recalc ⇒ String
The amount of time to wait before volatile functions are recalculated.
-
#default_format ⇒ Google::Apis::SheetsV4::CellFormat
The format of a cell.
-
#locale ⇒ String
The locale of the spreadsheet in one of the following formats: * an ISO 639-1 language code such as
en
* an ISO 639-2 language code such asfil
, if no 639-1 code exists * a combination of the ISO language code and country code, such asen_US
Note: when updating this field, not all locales/languages are supported. -
#time_zone ⇒ String
The time zone of the spreadsheet, in CLDR format such as
America/New_York
. -
#title ⇒ String
The title of the spreadsheet.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SpreadsheetProperties
constructor
A new instance of SpreadsheetProperties.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SpreadsheetProperties
Returns a new instance of SpreadsheetProperties.
681 682 683 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 681 def initialize(**args) update!(**args) end |
Instance Attribute Details
#auto_recalc ⇒ String
The amount of time to wait before volatile functions are recalculated.
Corresponds to the JSON property autoRecalc
660 661 662 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 660 def auto_recalc @auto_recalc end |
#default_format ⇒ Google::Apis::SheetsV4::CellFormat
The format of a cell.
Corresponds to the JSON property defaultFormat
679 680 681 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 679 def default_format @default_format end |
#locale ⇒ String
The locale of the spreadsheet in one of the following formats:
- an ISO 639-1 language code such as
en
- an ISO 639-2 language code such as
fil
, if no 639-1 code exists - a combination of the ISO language code and country code, such as
en_US
Note: when updating this field, not all locales/languages are supported. Corresponds to the JSON propertylocale
669 670 671 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 669 def locale @locale end |
#time_zone ⇒ String
The time zone of the spreadsheet, in CLDR format such as
America/New_York
. If the time zone isn't recognized, this may
be a custom time zone such as GMT-07:00
.
Corresponds to the JSON property timeZone
655 656 657 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 655 def time_zone @time_zone end |
#title ⇒ String
The title of the spreadsheet.
Corresponds to the JSON property title
674 675 676 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 674 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
686 687 688 689 690 691 692 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 686 def update!(**args) @time_zone = args[:time_zone] if args.key?(:time_zone) @auto_recalc = args[:auto_recalc] if args.key?(:auto_recalc) @locale = args[:locale] if args.key?(:locale) @title = args[:title] if args.key?(:title) @default_format = args[:default_format] if args.key?(:default_format) end |