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

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

Overview

Properties and contents of each table cell.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TableCell

Returns a new instance of TableCell.



3923
3924
3925
# File 'lib/google/apis/slides_v1/classes.rb', line 3923

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

Instance Attribute Details

#column_spanFixnum

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

Returns:

  • (Fixnum)


3900
3901
3902
# File 'lib/google/apis/slides_v1/classes.rb', line 3900

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



3905
3906
3907
# File 'lib/google/apis/slides_v1/classes.rb', line 3905

def location
  @location
end

#row_spanFixnum

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

Returns:

  • (Fixnum)


3910
3911
3912
# File 'lib/google/apis/slides_v1/classes.rb', line 3910

def row_span
  @row_span
end

#table_cell_propertiesGoogle::Apis::SlidesV1::TableCellProperties

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



3915
3916
3917
# File 'lib/google/apis/slides_v1/classes.rb', line 3915

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



3921
3922
3923
# File 'lib/google/apis/slides_v1/classes.rb', line 3921

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3928
3929
3930
3931
3932
3933
3934
# File 'lib/google/apis/slides_v1/classes.rb', line 3928

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