Class: Google::Apis::MerchantapiAccountsV1beta::Table

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

Overview

A table defining the rate group, when single_value is not expressive enough.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Table

Returns a new instance of Table.



2558
2559
2560
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2558

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

Instance Attribute Details

#column_headersGoogle::Apis::MerchantapiAccountsV1beta::Headers

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



2539
2540
2541
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2539

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)


2544
2545
2546
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2544

def name
  @name
end

#row_headersGoogle::Apis::MerchantapiAccountsV1beta::Headers

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



2550
2551
2552
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2550

def row_headers
  @row_headers
end

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

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



2556
2557
2558
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2556

def rows
  @rows
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2563
2564
2565
2566
2567
2568
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2563

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