Class: Google::Apis::ContentV2_1::ProductDeliveryTimeAreaDeliveryTime
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::ProductDeliveryTimeAreaDeliveryTime
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Overview
A pairing of DeliveryArea
associated with a DeliveryTime
for this product.
Instance Attribute Summary collapse
-
#delivery_area ⇒ Google::Apis::ContentV2_1::DeliveryArea
A delivery area for the product.
-
#delivery_time ⇒ Google::Apis::ContentV2_1::ProductDeliveryTimeAreaDeliveryTimeDeliveryTime
A delivery time for this product.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ProductDeliveryTimeAreaDeliveryTime
constructor
A new instance of ProductDeliveryTimeAreaDeliveryTime.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ProductDeliveryTimeAreaDeliveryTime
Returns a new instance of ProductDeliveryTimeAreaDeliveryTime.
9501 9502 9503 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9501 def initialize(**args) update!(**args) end |
Instance Attribute Details
#delivery_area ⇒ Google::Apis::ContentV2_1::DeliveryArea
A delivery area for the product. Only one of countryCode
or postalCodeRange
must be set.
Corresponds to the JSON property deliveryArea
9494 9495 9496 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9494 def delivery_area @delivery_area end |
#delivery_time ⇒ Google::Apis::ContentV2_1::ProductDeliveryTimeAreaDeliveryTimeDeliveryTime
A delivery time for this product.
Corresponds to the JSON property deliveryTime
9499 9500 9501 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9499 def delivery_time @delivery_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9506 9507 9508 9509 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9506 def update!(**args) @delivery_area = args[:delivery_area] if args.key?(:delivery_area) @delivery_time = args[:delivery_time] if args.key?(:delivery_time) end |