Class: Google::Apis::DocsV1::SheetsChartReference

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

Overview

A reference to a linked chart embedded from Google Sheets.

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) ⇒ SheetsChartReference

Returns a new instance of SheetsChartReference.



4658
4659
4660
# File 'generated/google/apis/docs_v1/classes.rb', line 4658

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

Instance Attribute Details

#chart_idFixnum

The ID of the specific chart in the Google Sheets spreadsheet that is embedded. Corresponds to the JSON property chartId

Returns:

  • (Fixnum)


4651
4652
4653
# File 'generated/google/apis/docs_v1/classes.rb', line 4651

def chart_id
  @chart_id
end

#spreadsheet_idString

The ID of the Google Sheets spreadsheet that contains the source chart. Corresponds to the JSON property spreadsheetId

Returns:

  • (String)


4656
4657
4658
# File 'generated/google/apis/docs_v1/classes.rb', line 4656

def spreadsheet_id
  @spreadsheet_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4663
4664
4665
4666
# File 'generated/google/apis/docs_v1/classes.rb', line 4663

def update!(**args)
  @chart_id = args[:chart_id] if args.key?(:chart_id)
  @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
end