Class: Google::Apis::ContentV2::AccountShippingRateTableCell

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

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

#conditionGoogle::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

#rateGoogle::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