Class: Google::Apis::ContentV2::Table

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2/classes.rb,
generated/google/apis/content_v2/representations.rb,
generated/google/apis/content_v2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Table

Returns a new instance of Table



8394
8395
8396
# File 'generated/google/apis/content_v2/classes.rb', line 8394

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

Instance Attribute Details

#column_headersGoogle::Apis::ContentV2::Headers

A non-empty list of row or column headers for a table. Exactly one of prices, weights, numItems, postalCodeGroupNames, or locations must be set. Corresponds to the JSON property columnHeaders



8375
8376
8377
# File 'generated/google/apis/content_v2/classes.rb', line 8375

def column_headers
  @column_headers
end

#nameString

Name of the table. Required for subtables, ignored for the main table. Corresponds to the JSON property name

Returns:

  • (String)


8380
8381
8382
# File 'generated/google/apis/content_v2/classes.rb', line 8380

def name
  @name
end

#row_headersGoogle::Apis::ContentV2::Headers

A non-empty list of row or column headers for a table. Exactly one of prices, weights, numItems, postalCodeGroupNames, or locations must be set. Corresponds to the JSON property rowHeaders



8386
8387
8388
# File 'generated/google/apis/content_v2/classes.rb', line 8386

def row_headers
  @row_headers
end

#rowsArray<Google::Apis::ContentV2::Row>

The list of rows that constitute the table. Must have the same length as rowHeaders. Required. Corresponds to the JSON property rows

Returns:



8392
8393
8394
# File 'generated/google/apis/content_v2/classes.rb', line 8392

def rows
  @rows
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8399
8400
8401
8402
8403
8404
# File 'generated/google/apis/content_v2/classes.rb', line 8399

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