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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/sheets_v4/classes.rb,
lib/google/apis/sheets_v4/representations.rb,
lib/google/apis/sheets_v4/representations.rb

Overview

A sheet in a spreadsheet.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Sheet

Returns a new instance of Sheet.



8731
8732
8733
# File 'lib/google/apis/sheets_v4/classes.rb', line 8731

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

Instance Attribute Details

#banded_rangesArray<Google::Apis::SheetsV4::BandedRange>

The banded (alternating colors) ranges on this sheet. Corresponds to the JSON property bandedRanges



8660
8661
8662
# File 'lib/google/apis/sheets_v4/classes.rb', line 8660

def banded_ranges
  @banded_ranges
end

#basic_filterGoogle::Apis::SheetsV4::BasicFilter

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



8665
8666
8667
# File 'lib/google/apis/sheets_v4/classes.rb', line 8665

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



8670
8671
8672
# File 'lib/google/apis/sheets_v4/classes.rb', line 8670

def charts
  @charts
end

#column_groupsArray<Google::Apis::SheetsV4::DimensionGroup>

All column groups on this sheet, ordered by increasing range start index, then by group depth. Corresponds to the JSON property columnGroups



8676
8677
8678
# File 'lib/google/apis/sheets_v4/classes.rb', line 8676

def column_groups
  @column_groups
end

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

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



8681
8682
8683
# File 'lib/google/apis/sheets_v4/classes.rb', line 8681

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). For a DATA_SOURCE sheet, you can not request a specific range, the GridData contains all the values. Corresponds to the JSON property data



8693
8694
8695
# File 'lib/google/apis/sheets_v4/classes.rb', line 8693

def data
  @data
end

#developer_metadataArray<Google::Apis::SheetsV4::DeveloperMetadata>

The developer metadata associated with a sheet. Corresponds to the JSON property developerMetadata



8698
8699
8700
# File 'lib/google/apis/sheets_v4/classes.rb', line 8698

def 
  @developer_metadata
end

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

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



8703
8704
8705
# File 'lib/google/apis/sheets_v4/classes.rb', line 8703

def filter_views
  @filter_views
end

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

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



8708
8709
8710
# File 'lib/google/apis/sheets_v4/classes.rb', line 8708

def merges
  @merges
end

#propertiesGoogle::Apis::SheetsV4::SheetProperties

Properties of a sheet. Corresponds to the JSON property properties



8713
8714
8715
# File 'lib/google/apis/sheets_v4/classes.rb', line 8713

def properties
  @properties
end

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

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



8718
8719
8720
# File 'lib/google/apis/sheets_v4/classes.rb', line 8718

def protected_ranges
  @protected_ranges
end

#row_groupsArray<Google::Apis::SheetsV4::DimensionGroup>

All row groups on this sheet, ordered by increasing range start index, then by group depth. Corresponds to the JSON property rowGroups



8724
8725
8726
# File 'lib/google/apis/sheets_v4/classes.rb', line 8724

def row_groups
  @row_groups
end

#slicersArray<Google::Apis::SheetsV4::Slicer>

The slicers on this sheet. Corresponds to the JSON property slicers

Returns:



8729
8730
8731
# File 'lib/google/apis/sheets_v4/classes.rb', line 8729

def slicers
  @slicers
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
# File 'lib/google/apis/sheets_v4/classes.rb', line 8736

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