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.
9492 9493 9494 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9492 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
9485 9486 9487 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9485 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
9490 9491 9492 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9490 def delivery_time @delivery_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9497 9498 9499 9500 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9497 def update!(**args) @delivery_area = args[:delivery_area] if args.key?(:delivery_area) @delivery_time = args[:delivery_time] if args.key?(:delivery_time) end |