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.



4155
4156
4157
# File 'lib/google/apis/sheets_v4/classes.rb', line 4155

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)


4133
4134
4135
# File 'lib/google/apis/sheets_v4/classes.rb', line 4133

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



4138
4139
4140
# File 'lib/google/apis/sheets_v4/classes.rb', line 4138

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



4143
4144
4145
# File 'lib/google/apis/sheets_v4/classes.rb', line 4143

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



4148
4149
4150
# File 'lib/google/apis/sheets_v4/classes.rb', line 4148

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)


4153
4154
4155
# File 'lib/google/apis/sheets_v4/classes.rb', line 4153

def sheet_id
  @sheet_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4160
4161
4162
4163
4164
4165
4166
# File 'lib/google/apis/sheets_v4/classes.rb', line 4160

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