Class: Google::Apis::ContentV2_1::TestOrderPickupDetailsPickupPerson

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

Constructor Details

#initialize(**args) ⇒ TestOrderPickupDetailsPickupPerson

Returns a new instance of TestOrderPickupDetailsPickupPerson.



13388
13389
13390
# File 'generated/google/apis/content_v2_1/classes.rb', line 13388

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

Instance Attribute Details

#nameString

Required. Full name of the pickup person. Corresponds to the JSON property name

Returns:

  • (String)


13381
13382
13383
# File 'generated/google/apis/content_v2_1/classes.rb', line 13381

def name
  @name
end

#phone_numberString

Required. The phone number of the person picking up the items. Corresponds to the JSON property phoneNumber

Returns:

  • (String)


13386
13387
13388
# File 'generated/google/apis/content_v2_1/classes.rb', line 13386

def phone_number
  @phone_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13393
13394
13395
13396
# File 'generated/google/apis/content_v2_1/classes.rb', line 13393

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