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

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2_1/classes.rb,
generated/google/apis/content_v2_1/representations.rb,
generated/google/apis/content_v2_1/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) ⇒ OrderPickupDetailsCollector

Returns a new instance of OrderPickupDetailsCollector.



4972
4973
4974
# File 'generated/google/apis/content_v2_1/classes.rb', line 4972

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)


4965
4966
4967
# File 'generated/google/apis/content_v2_1/classes.rb', line 4965

def name
  @name
end

#phone_numberString

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

Returns:

  • (String)


4970
4971
4972
# File 'generated/google/apis/content_v2_1/classes.rb', line 4970

def phone_number
  @phone_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4977
4978
4979
4980
# File 'generated/google/apis/content_v2_1/classes.rb', line 4977

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