Class: Google::Apis::ContentV2::OrderPickupDetailsCollector

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

Constructor Details

#initialize(**args) ⇒ OrderPickupDetailsCollector

Returns a new instance of OrderPickupDetailsCollector.



5175
5176
5177
# File 'generated/google/apis/content_v2/classes.rb', line 5175

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

Instance Attribute Details

#nameString

Name of the person picking up the shipment. Corresponds to the JSON property name

Returns:

  • (String)


5168
5169
5170
# File 'generated/google/apis/content_v2/classes.rb', line 5168

def name
  @name
end

#phone_numberString

Phone number of the person picking up the shipment. Corresponds to the JSON property phoneNumber

Returns:

  • (String)


5173
5174
5175
# File 'generated/google/apis/content_v2/classes.rb', line 5173

def phone_number
  @phone_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5180
5181
5182
5183
# File 'generated/google/apis/content_v2/classes.rb', line 5180

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