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.
427 428 429 |
# File 'generated/google/apis/content_v2/classes.rb', line 427 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
414 415 416 |
# File 'generated/google/apis/content_v2/classes.rb', line 414 def content @content end |
#name ⇒ String
The name of the rate table.
Corresponds to the JSON property name
419 420 421 |
# File 'generated/google/apis/content_v2/classes.rb', line 419 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
425 426 427 |
# File 'generated/google/apis/content_v2/classes.rb', line 425 def sale_country @sale_country end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
432 433 434 435 436 |
# File 'generated/google/apis/content_v2/classes.rb', line 432 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 |