Class: Google::Apis::SheetsV4::Spreadsheet

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

Resource that represents a spreadsheet.

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

Returns a new instance of Spreadsheet



4202
4203
4204
# File 'generated/google/apis/sheets_v4/classes.rb', line 4202

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

Instance Attribute Details

#named_rangesArray<Google::Apis::SheetsV4::NamedRange>

The named ranges defined in a spreadsheet. Corresponds to the JSON property namedRanges



4194
4195
4196
# File 'generated/google/apis/sheets_v4/classes.rb', line 4194

def named_ranges
  @named_ranges
end

#propertiesGoogle::Apis::SheetsV4::SpreadsheetProperties

Properties of a spreadsheet. Corresponds to the JSON property properties



4178
4179
4180
# File 'generated/google/apis/sheets_v4/classes.rb', line 4178

def properties
  @properties
end

#sheetsArray<Google::Apis::SheetsV4::Sheet>

The sheets that are part of a spreadsheet. Corresponds to the JSON property sheets

Returns:



4189
4190
4191
# File 'generated/google/apis/sheets_v4/classes.rb', line 4189

def sheets
  @sheets
end

#spreadsheet_idString

The ID of the spreadsheet. This field is read-only. Corresponds to the JSON property spreadsheetId

Returns:

  • (String)


4184
4185
4186
# File 'generated/google/apis/sheets_v4/classes.rb', line 4184

def spreadsheet_id
  @spreadsheet_id
end

#spreadsheet_urlString

The url of the spreadsheet. This field is read-only. Corresponds to the JSON property spreadsheetUrl

Returns:

  • (String)


4200
4201
4202
# File 'generated/google/apis/sheets_v4/classes.rb', line 4200

def spreadsheet_url
  @spreadsheet_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4207
4208
4209
4210
4211
4212
4213
# File 'generated/google/apis/sheets_v4/classes.rb', line 4207

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