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



6987
6988
6989
# File 'generated/google/apis/sheets_v4/classes.rb', line 6987

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



6963
6964
6965
# File 'generated/google/apis/sheets_v4/classes.rb', line 6963

def named_ranges
  @named_ranges
end

#propertiesGoogle::Apis::SheetsV4::SpreadsheetProperties

Properties of a spreadsheet. Corresponds to the JSON property properties



6985
6986
6987
# File 'generated/google/apis/sheets_v4/classes.rb', line 6985

def properties
  @properties
end

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

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

Returns:



6968
6969
6970
# File 'generated/google/apis/sheets_v4/classes.rb', line 6968

def sheets
  @sheets
end

#spreadsheet_idString

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

Returns:

  • (String)


6974
6975
6976
# File 'generated/google/apis/sheets_v4/classes.rb', line 6974

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)


6980
6981
6982
# File 'generated/google/apis/sheets_v4/classes.rb', line 6980

def spreadsheet_url
  @spreadsheet_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6992
6993
6994
6995
6996
6997
6998
# File 'generated/google/apis/sheets_v4/classes.rb', line 6992

def update!(**args)
  @named_ranges = args[:named_ranges] if args.key?(:named_ranges)
  @sheets = args[:sheets] if args.key?(:sheets)
  @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
  @spreadsheet_url = args[:spreadsheet_url] if args.key?(:spreadsheet_url)
  @properties = args[:properties] if args.key?(:properties)
end