Class: Google::Apis::SheetsV4::AddChartRequest

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

Adds a chart to a sheet in the spreadsheet.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AddChartRequest

Returns a new instance of AddChartRequest.



72
73
74
# File 'lib/google/apis/sheets_v4/classes.rb', line 72

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

Instance Attribute Details

#chartGoogle::Apis::SheetsV4::EmbeddedChart

A chart embedded in a sheet. Corresponds to the JSON property chart



70
71
72
# File 'lib/google/apis/sheets_v4/classes.rb', line 70

def chart
  @chart
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



77
78
79
# File 'lib/google/apis/sheets_v4/classes.rb', line 77

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