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

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

A chart embedded in a sheet.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EmbeddedChart

Returns a new instance of EmbeddedChart.



5227
5228
5229
# File 'lib/google/apis/sheets_v4/classes.rb', line 5227

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

Instance Attribute Details

#borderGoogle::Apis::SheetsV4::EmbeddedObjectBorder

A border along an embedded object. Corresponds to the JSON property border



5210
5211
5212
# File 'lib/google/apis/sheets_v4/classes.rb', line 5210

def border
  @border
end

#chart_idFixnum

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

Returns:

  • (Fixnum)


5215
5216
5217
# File 'lib/google/apis/sheets_v4/classes.rb', line 5215

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



5220
5221
5222
# File 'lib/google/apis/sheets_v4/classes.rb', line 5220

def position
  @position
end

#specGoogle::Apis::SheetsV4::ChartSpec

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



5225
5226
5227
# File 'lib/google/apis/sheets_v4/classes.rb', line 5225

def spec
  @spec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5232
5233
5234
5235
5236
5237
# File 'lib/google/apis/sheets_v4/classes.rb', line 5232

def update!(**args)
  @border = args[:border] if args.key?(:border)
  @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