Class: Google::Apis::SheetsV4::Spreadsheet
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::Spreadsheet
- 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
Resource that represents a spreadsheet.
Instance Attribute Summary collapse
-
#named_ranges ⇒ Array<Google::Apis::SheetsV4::NamedRange>
The named ranges defined in a spreadsheet.
-
#properties ⇒ Google::Apis::SheetsV4::SpreadsheetProperties
Properties of a spreadsheet.
-
#sheets ⇒ Array<Google::Apis::SheetsV4::Sheet>
The sheets that are part of a spreadsheet.
-
#spreadsheet_id ⇒ String
The ID of the spreadsheet.
-
#spreadsheet_url ⇒ String
The url of the spreadsheet.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Spreadsheet
constructor
A new instance of Spreadsheet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Spreadsheet
Returns a new instance of Spreadsheet
2042 2043 2044 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 2042 def initialize(**args) update!(**args) end |
Instance Attribute Details
#named_ranges ⇒ Array<Google::Apis::SheetsV4::NamedRange>
The named ranges defined in a spreadsheet.
Corresponds to the JSON property namedRanges
2034 2035 2036 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 2034 def named_ranges @named_ranges end |
#properties ⇒ Google::Apis::SheetsV4::SpreadsheetProperties
Properties of a spreadsheet.
Corresponds to the JSON property properties
2018 2019 2020 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 2018 def properties @properties end |
#sheets ⇒ Array<Google::Apis::SheetsV4::Sheet>
The sheets that are part of a spreadsheet.
Corresponds to the JSON property sheets
2029 2030 2031 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 2029 def sheets @sheets end |
#spreadsheet_id ⇒ String
The ID of the spreadsheet.
This field is read-only.
Corresponds to the JSON property spreadsheetId
2024 2025 2026 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 2024 def spreadsheet_id @spreadsheet_id end |
#spreadsheet_url ⇒ String
The url of the spreadsheet.
This field is read-only.
Corresponds to the JSON property spreadsheetUrl
2040 2041 2042 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 2040 def spreadsheet_url @spreadsheet_url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2047 2048 2049 2050 2051 2052 2053 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 2047 def update!(**args) @properties = args[:properties] if args.key?(:properties) @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id) @sheets = args[:sheets] if args.key?(:sheets) @named_ranges = args[:named_ranges] if args.key?(:named_ranges) @spreadsheet_url = args[:spreadsheet_url] if args.key?(:spreadsheet_url) end |