Class: Google::Apis::ContentV2_1::Table
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::Table
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Instance Attribute Summary collapse
-
#column_headers ⇒ Google::Apis::ContentV2_1::Headers
A non-empty list of row or column headers for a table.
-
#name ⇒ String
Name of the table.
-
#row_headers ⇒ Google::Apis::ContentV2_1::Headers
A non-empty list of row or column headers for a table.
-
#rows ⇒ Array<Google::Apis::ContentV2_1::Row>
The list of rows that constitute the table.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Table
constructor
A new instance of Table.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Table
Returns a new instance of Table.
14346 14347 14348 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 14346 def initialize(**args) update!(**args) end |
Instance Attribute Details
#column_headers ⇒ Google::Apis::ContentV2_1::Headers
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
14327 14328 14329 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 14327 def column_headers @column_headers end |
#name ⇒ String
Name of the table. Required for subtables, ignored for the main table.
Corresponds to the JSON property name
14332 14333 14334 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 14332 def name @name end |
#row_headers ⇒ Google::Apis::ContentV2_1::Headers
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
14338 14339 14340 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 14338 def row_headers @row_headers end |
#rows ⇒ Array<Google::Apis::ContentV2_1::Row>
The list of rows that constitute the table. Must have the same length as
rowHeaders. Required.
Corresponds to the JSON property rows
14344 14345 14346 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 14344 def rows @rows end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
14351 14352 14353 14354 14355 14356 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 14351 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 |