Class: Google::Apis::ContentV2::OrderDeliveryDetails

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) ⇒ OrderDeliveryDetails


3024
3025
3026
# File 'generated/google/apis/content_v2/classes.rb', line 3024

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#addressGoogle::Apis::ContentV2::OrderAddress

The delivery address Corresponds to the JSON property address


3017
3018
3019
# File 'generated/google/apis/content_v2/classes.rb', line 3017

def address
  @address
end

#phone_numberString

The phone number of the person receiving the delivery. Corresponds to the JSON property phoneNumber


3022
3023
3024
# File 'generated/google/apis/content_v2/classes.rb', line 3022

def phone_number
  @phone_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


3029
3030
3031
3032
# File 'generated/google/apis/content_v2/classes.rb', line 3029

def update!(**args)
  @address = args[:address] if args.key?(:address)
  @phone_number = args[:phone_number] if args.key?(:phone_number)
end