Class: Google::Apis::ContentV2::AccountShippingRateTableCell
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2::AccountShippingRateTableCell
- 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
-
#condition ⇒ Google::Apis::ContentV2::AccountShippingCondition
Conditions for which the cell is valid.
-
#rate ⇒ Google::Apis::ContentV2::Price
The rate applicable if the cell conditions are matched.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AccountShippingRateTableCell
constructor
A new instance of AccountShippingRateTableCell.
-
#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) ⇒ AccountShippingRateTableCell
Returns a new instance of AccountShippingRateTableCell.
457 458 459 |
# File 'generated/google/apis/content_v2/classes.rb', line 457 def initialize(**args) update!(**args) end |
Instance Attribute Details
#condition ⇒ Google::Apis::ContentV2::AccountShippingCondition
Conditions for which the cell is valid. All cells in a table must use the same
dimension or pair of dimensions among price, weight, shipping label or
delivery location. If no condition is specified, the cell acts as a catch-all
and matches all the elements that are not matched by other cells in this
dimension.
Corresponds to the JSON property condition
450 451 452 |
# File 'generated/google/apis/content_v2/classes.rb', line 450 def condition @condition end |
#rate ⇒ Google::Apis::ContentV2::Price
The rate applicable if the cell conditions are matched.
Corresponds to the JSON property rate
455 456 457 |
# File 'generated/google/apis/content_v2/classes.rb', line 455 def rate @rate end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
462 463 464 465 |
# File 'generated/google/apis/content_v2/classes.rb', line 462 def update!(**args) @condition = args[:condition] if args.key?(:condition) @rate = args[:rate] if args.key?(:rate) end |