Class: Google::Apis::ContentV2::OrderDeliveryDetails
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2::OrderDeliveryDetails
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2/classes.rb,
lib/google/apis/content_v2/representations.rb,
lib/google/apis/content_v2/representations.rb
Instance Attribute Summary collapse
-
#address ⇒ Google::Apis::ContentV2::OrderAddress
The delivery address Corresponds to the JSON property
address. -
#phone_number ⇒ String
The phone number of the person receiving the delivery.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OrderDeliveryDetails
constructor
A new instance of OrderDeliveryDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OrderDeliveryDetails
Returns a new instance of OrderDeliveryDetails.
4609 4610 4611 |
# File 'lib/google/apis/content_v2/classes.rb', line 4609 def initialize(**args) update!(**args) end |
Instance Attribute Details
#address ⇒ Google::Apis::ContentV2::OrderAddress
The delivery address
Corresponds to the JSON property address
4602 4603 4604 |
# File 'lib/google/apis/content_v2/classes.rb', line 4602 def address @address end |
#phone_number ⇒ String
The phone number of the person receiving the delivery.
Corresponds to the JSON property phoneNumber
4607 4608 4609 |
# File 'lib/google/apis/content_v2/classes.rb', line 4607 def phone_number @phone_number end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4614 4615 4616 4617 |
# File 'lib/google/apis/content_v2/classes.rb', line 4614 def update!(**args) @address = args[:address] if args.key?(:address) @phone_number = args[:phone_number] if args.key?(:phone_number) end |