Class: Google::Apis::ContentV2_1::OrderPickupDetailsCollector

Inherits:
Object
  • Object
show all
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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OrderPickupDetailsCollector

Returns a new instance of OrderPickupDetailsCollector.



6328
6329
6330
# File 'lib/google/apis/content_v2_1/classes.rb', line 6328

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)


6321
6322
6323
# File 'lib/google/apis/content_v2_1/classes.rb', line 6321

def name
  @name
end

#phone_numberString

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

Returns:

  • (String)


6326
6327
6328
# File 'lib/google/apis/content_v2_1/classes.rb', line 6326

def phone_number
  @phone_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6333
6334
6335
6336
# File 'lib/google/apis/content_v2_1/classes.rb', line 6333

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