Class: Google::Apis::SlidesV1::TableRange

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

A table range represents a reference to a subset of a table. It's important to note that the cells specified by a table range do not necessarily form a rectangle. For example, let's say we have a 3 x 3 table where all the cells of the last row are merged together. The table looks like this: [ ] A table range with location = (0, 0), row span = 3 and column span = 2 specifies the following cells: x x [ x x x ]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TableRange

Returns a new instance of TableRange.



4005
4006
4007
# File 'lib/google/apis/slides_v1/classes.rb', line 4005

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

Instance Attribute Details

#column_spanFixnum

The column span of the table range. Corresponds to the JSON property columnSpan

Returns:

  • (Fixnum)


3993
3994
3995
# File 'lib/google/apis/slides_v1/classes.rb', line 3993

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



3998
3999
4000
# File 'lib/google/apis/slides_v1/classes.rb', line 3998

def location
  @location
end

#row_spanFixnum

The row span of the table range. Corresponds to the JSON property rowSpan

Returns:

  • (Fixnum)


4003
4004
4005
# File 'lib/google/apis/slides_v1/classes.rb', line 4003

def row_span
  @row_span
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4010
4011
4012
4013
4014
# File 'lib/google/apis/slides_v1/classes.rb', line 4010

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)
end