Class: Google::Apis::SlidesV1::SheetsChart

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

Overview

A PageElement kind representing 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) ⇒ SheetsChart

Returns a new instance of SheetsChart



1385
1386
1387
# File 'generated/google/apis/slides_v1/classes.rb', line 1385

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)


1378
1379
1380
# File 'generated/google/apis/slides_v1/classes.rb', line 1378

def chart_id
  @chart_id
end

#content_urlString

The URL of an image of the embedded chart, with a default lifetime of 30 minutes. This URL is tagged with the account of the requester. Anyone with the URL effectively accesses the image as the original requester. Access to the image may be lost if the presentation's sharing settings change. Corresponds to the JSON property contentUrl

Returns:

  • (String)


1367
1368
1369
# File 'generated/google/apis/slides_v1/classes.rb', line 1367

def content_url
  @content_url
end

#sheets_chart_propertiesGoogle::Apis::SlidesV1::SheetsChartProperties

The properties of the SheetsChart. Corresponds to the JSON property sheetsChartProperties



1383
1384
1385
# File 'generated/google/apis/slides_v1/classes.rb', line 1383

def sheets_chart_properties
  @sheets_chart_properties
end

#spreadsheet_idString

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

Returns:

  • (String)


1372
1373
1374
# File 'generated/google/apis/slides_v1/classes.rb', line 1372

def spreadsheet_id
  @spreadsheet_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1390
1391
1392
1393
1394
1395
# File 'generated/google/apis/slides_v1/classes.rb', line 1390

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