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.



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

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)


4005
4006
4007
# File 'lib/google/apis/sheets_v4/classes.rb', line 4005

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



4010
4011
4012
# File 'lib/google/apis/sheets_v4/classes.rb', line 4010

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



4015
4016
4017
# File 'lib/google/apis/sheets_v4/classes.rb', line 4015

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



4020
4021
4022
# File 'lib/google/apis/sheets_v4/classes.rb', line 4020

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)


4025
4026
4027
# File 'lib/google/apis/sheets_v4/classes.rb', line 4025

def sheet_id
  @sheet_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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