Class: Google::Apis::SheetsV4::Sheet

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

A sheet in 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) ⇒ Sheet

Returns a new instance of Sheet.



4337
4338
4339
# File 'generated/google/apis/sheets_v4/classes.rb', line 4337

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

Instance Attribute Details

#basic_filterGoogle::Apis::SheetsV4::BasicFilter

The default filter associated with a sheet. Corresponds to the JSON property basicFilter



4318
4319
4320
# File 'generated/google/apis/sheets_v4/classes.rb', line 4318

def basic_filter
  @basic_filter
end

#chartsArray<Google::Apis::SheetsV4::EmbeddedChart>

The specifications of every chart on this sheet. Corresponds to the JSON property charts



4298
4299
4300
# File 'generated/google/apis/sheets_v4/classes.rb', line 4298

def charts
  @charts
end

#conditional_formatsArray<Google::Apis::SheetsV4::ConditionalFormatRule>

The conditional format rules in this sheet. Corresponds to the JSON property conditionalFormats



4308
4309
4310
# File 'generated/google/apis/sheets_v4/classes.rb', line 4308

def conditional_formats
  @conditional_formats
end

#dataArray<Google::Apis::SheetsV4::GridData>

Data in the grid, if this is a grid sheet. The number of GridData objects returned is dependent on the number of ranges requested on this sheet. For example, if this is representing Sheet1, and the spreadsheet was requested with ranges Sheet1!A1:C10 and Sheet1!D15:E20, then the first GridData will have a startRow/startColumn of 0, while the second one will have startRow 14 (zero-based row 15), and startColumn 3 (zero-based column D). Corresponds to the JSON property data



4335
4336
4337
# File 'generated/google/apis/sheets_v4/classes.rb', line 4335

def data
  @data
end

#filter_viewsArray<Google::Apis::SheetsV4::FilterView>

The filter views in this sheet. Corresponds to the JSON property filterViews



4303
4304
4305
# File 'generated/google/apis/sheets_v4/classes.rb', line 4303

def filter_views
  @filter_views
end

#mergesArray<Google::Apis::SheetsV4::GridRange>

The ranges that are merged together. Corresponds to the JSON property merges



4323
4324
4325
# File 'generated/google/apis/sheets_v4/classes.rb', line 4323

def merges
  @merges
end

#propertiesGoogle::Apis::SheetsV4::SheetProperties

Properties of a sheet. Corresponds to the JSON property properties



4293
4294
4295
# File 'generated/google/apis/sheets_v4/classes.rb', line 4293

def properties
  @properties
end

#protected_rangesArray<Google::Apis::SheetsV4::ProtectedRange>

The protected ranges in this sheet. Corresponds to the JSON property protectedRanges



4313
4314
4315
# File 'generated/google/apis/sheets_v4/classes.rb', line 4313

def protected_ranges
  @protected_ranges
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
# File 'generated/google/apis/sheets_v4/classes.rb', line 4342

def update!(**args)
  @properties = args[:properties] if args.key?(:properties)
  @charts = args[:charts] if args.key?(:charts)
  @filter_views = args[:filter_views] if args.key?(:filter_views)
  @conditional_formats = args[:conditional_formats] if args.key?(:conditional_formats)
  @protected_ranges = args[:protected_ranges] if args.key?(:protected_ranges)
  @basic_filter = args[:basic_filter] if args.key?(:basic_filter)
  @merges = args[:merges] if args.key?(:merges)
  @data = args[:data] if args.key?(:data)
end