Class: Google::Apis::ContentV2::AccountShippingRateTable
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2::AccountShippingRateTable
- Defined in:
- generated/google/apis/content_v2/classes.rb,
generated/google/apis/content_v2/representations.rb,
generated/google/apis/content_v2/representations.rb
Overview
A single or bi-dimensional table of shipping rates. Each dimension is defined in terms of consecutive price/weight ranges, delivery locations, or shipping labels.
Instance Attribute Summary collapse
-
#content ⇒ Array<Google::Apis::ContentV2::AccountShippingRateTableCell>
One-dimensional table cells define one condition along the same dimension.
-
#name ⇒ String
The name of the rate table.
-
#sale_country ⇒ String
The sale country for which this table is valid, represented as a CLDR territory code.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AccountShippingRateTable
constructor
A new instance of AccountShippingRateTable.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ AccountShippingRateTable
Returns a new instance of AccountShippingRateTable
428 429 430 |
# File 'generated/google/apis/content_v2/classes.rb', line 428 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content ⇒ Array<Google::Apis::ContentV2::AccountShippingRateTableCell>
One-dimensional table cells define one condition along the same dimension. Bi-
dimensional table cells use two dimensions with respectively M and N distinct
values and must contain exactly M * N cells with distinct conditions (for each
possible value pairs).
Corresponds to the JSON property content
415 416 417 |
# File 'generated/google/apis/content_v2/classes.rb', line 415 def content @content end |
#name ⇒ String
The name of the rate table.
Corresponds to the JSON property name
420 421 422 |
# File 'generated/google/apis/content_v2/classes.rb', line 420 def name @name end |
#sale_country ⇒ String
The sale country for which this table is valid, represented as a CLDR
territory code.
Corresponds to the JSON property saleCountry
426 427 428 |
# File 'generated/google/apis/content_v2/classes.rb', line 426 def sale_country @sale_country end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
433 434 435 436 437 |
# File 'generated/google/apis/content_v2/classes.rb', line 433 def update!(**args) @content = args[:content] if args.key?(:content) @name = args[:name] if args.key?(:name) @sale_country = args[:sale_country] if args.key?(:sale_country) end |