Class: Google::Apis::SheetsV4::DataSourceObjectReference

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

Reference to a data source object.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DataSourceObjectReference

Returns a new instance of DataSourceObjectReference.



4029
4030
4031
# File 'lib/google/apis/sheets_v4/classes.rb', line 4029

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

Instance Attribute Details

#chart_idFixnum

References to a data source chart. Corresponds to the JSON property chartId

Returns:

  • (Fixnum)


4007
4008
4009
# File 'lib/google/apis/sheets_v4/classes.rb', line 4007

def chart_id
  @chart_id
end

#data_source_formula_cellGoogle::Apis::SheetsV4::GridCoordinate

A coordinate in a sheet. All indexes are zero-based. Corresponds to the JSON property dataSourceFormulaCell



4012
4013
4014
# File 'lib/google/apis/sheets_v4/classes.rb', line 4012

def data_source_formula_cell
  @data_source_formula_cell
end

#data_source_pivot_table_anchor_cellGoogle::Apis::SheetsV4::GridCoordinate

A coordinate in a sheet. All indexes are zero-based. Corresponds to the JSON property dataSourcePivotTableAnchorCell



4017
4018
4019
# File 'lib/google/apis/sheets_v4/classes.rb', line 4017

def data_source_pivot_table_anchor_cell
  @data_source_pivot_table_anchor_cell
end

#data_source_table_anchor_cellGoogle::Apis::SheetsV4::GridCoordinate

A coordinate in a sheet. All indexes are zero-based. Corresponds to the JSON property dataSourceTableAnchorCell



4022
4023
4024
# File 'lib/google/apis/sheets_v4/classes.rb', line 4022

def data_source_table_anchor_cell
  @data_source_table_anchor_cell
end

#sheet_idString

References to a DATA_SOURCE sheet. Corresponds to the JSON property sheetId

Returns:

  • (String)


4027
4028
4029
# File 'lib/google/apis/sheets_v4/classes.rb', line 4027

def sheet_id
  @sheet_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4034
4035
4036
4037
4038
4039
4040
# File 'lib/google/apis/sheets_v4/classes.rb', line 4034

def update!(**args)
  @chart_id = args[:chart_id] if args.key?(:chart_id)
  @data_source_formula_cell = args[:data_source_formula_cell] if args.key?(:data_source_formula_cell)
  @data_source_pivot_table_anchor_cell = args[:data_source_pivot_table_anchor_cell] if args.key?(:data_source_pivot_table_anchor_cell)
  @data_source_table_anchor_cell = args[:data_source_table_anchor_cell] if args.key?(:data_source_table_anchor_cell)
  @sheet_id = args[:sheet_id] if args.key?(:sheet_id)
end