Class: Google::Apis::SlidesV1::TableCell

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

Properties and contents of each table cell.

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

Returns a new instance of TableCell



2302
2303
2304
# File 'generated/google/apis/slides_v1/classes.rb', line 2302

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

Instance Attribute Details

#column_spanFixnum

Column span of the cell. Corresponds to the JSON property columnSpan

Returns:

  • (Fixnum)


2300
2301
2302
# File 'generated/google/apis/slides_v1/classes.rb', line 2300

def column_span
  @column_span
end

#locationGoogle::Apis::SlidesV1::TableCellLocation

A location of a single table cell within a table. Corresponds to the JSON property location



2290
2291
2292
# File 'generated/google/apis/slides_v1/classes.rb', line 2290

def location
  @location
end

#row_spanFixnum

Row span of the cell. Corresponds to the JSON property rowSpan

Returns:

  • (Fixnum)


2295
2296
2297
# File 'generated/google/apis/slides_v1/classes.rb', line 2295

def row_span
  @row_span
end

#table_cell_propertiesGoogle::Apis::SlidesV1::TableCellProperties

The properties of the TableCell. Corresponds to the JSON property tableCellProperties



2285
2286
2287
# File 'generated/google/apis/slides_v1/classes.rb', line 2285

def table_cell_properties
  @table_cell_properties
end

#textGoogle::Apis::SlidesV1::TextContent

The general text content. The text must reside in a compatible shape (e.g. text box or rectangle) or a table cell in a page. Corresponds to the JSON property text



2280
2281
2282
# File 'generated/google/apis/slides_v1/classes.rb', line 2280

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2307
2308
2309
2310
2311
2312
2313
# File 'generated/google/apis/slides_v1/classes.rb', line 2307

def update!(**args)
  @text = args[:text] if args.key?(:text)
  @table_cell_properties = args[:table_cell_properties] if args.key?(:table_cell_properties)
  @location = args[:location] if args.key?(:location)
  @row_span = args[:row_span] if args.key?(:row_span)
  @column_span = args[:column_span] if args.key?(:column_span)
end