class Google::Apis::ContentV2::Table

Attributes

column_headers[RW]

A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. Corresponds to the JSON property `columnHeaders` @return [Google::Apis::ContentV2::Headers]

name[RW]

Name of the table. Required for subtables, ignored for the main table. Corresponds to the JSON property `name` @return [String]

row_headers[RW]

A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set. Corresponds to the JSON property `rowHeaders` @return [Google::Apis::ContentV2::Headers]

rows[RW]

The list of rows that constitute the table. Must have the same length as ` rowHeaders`. Required. Corresponds to the JSON property `rows` @return [Array<Google::Apis::ContentV2::Row>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/content_v2/classes.rb, line 10926
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/content_v2/classes.rb, line 10931
def update!(**args)
  @column_headers = args[:column_headers] if args.key?(:column_headers)
  @name = args[:name] if args.key?(:name)
  @row_headers = args[:row_headers] if args.key?(:row_headers)
  @rows = args[:rows] if args.key?(:rows)
end