Class: Google::Apis::SheetsV4::EmbeddedChart

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

Overview

A chart embedded in a sheet.

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

Returns a new instance of EmbeddedChart.



1814
1815
1816
# File 'generated/google/apis/sheets_v4/classes.rb', line 1814

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

Instance Attribute Details

#chart_idFixnum

The ID of the chart. Corresponds to the JSON property chartId

Returns:

  • (Fixnum)


1802
1803
1804
# File 'generated/google/apis/sheets_v4/classes.rb', line 1802

def chart_id
  @chart_id
end

#positionGoogle::Apis::SheetsV4::EmbeddedObjectPosition

The position of an embedded object such as a chart. Corresponds to the JSON property position



1807
1808
1809
# File 'generated/google/apis/sheets_v4/classes.rb', line 1807

def position
  @position
end

#specGoogle::Apis::SheetsV4::ChartSpec

The specifications of a chart. Corresponds to the JSON property spec



1812
1813
1814
# File 'generated/google/apis/sheets_v4/classes.rb', line 1812

def spec
  @spec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1819
1820
1821
1822
1823
# File 'generated/google/apis/sheets_v4/classes.rb', line 1819

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