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

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

Returns a new instance of TestOrderPickupDetailsPickupPerson.



15585
15586
15587
# File 'lib/google/apis/content_v2_1/classes.rb', line 15585

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)


15578
15579
15580
# File 'lib/google/apis/content_v2_1/classes.rb', line 15578

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)


15583
15584
15585
# File 'lib/google/apis/content_v2_1/classes.rb', line 15583

def phone_number
  @phone_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15590
15591
15592
15593
# File 'lib/google/apis/content_v2_1/classes.rb', line 15590

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