Class: Google::Apis::AuthorizedbuyersmarketplaceV1alpha::Contact

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/authorizedbuyersmarketplace_v1alpha/classes.rb,
lib/google/apis/authorizedbuyersmarketplace_v1alpha/representations.rb,
lib/google/apis/authorizedbuyersmarketplace_v1alpha/representations.rb

Overview

Contains information on how a buyer or seller can be reached.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Contact

Returns a new instance of Contact.



454
455
456
# File 'lib/google/apis/authorizedbuyersmarketplace_v1alpha/classes.rb', line 454

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

Instance Attribute Details

#display_nameString

The display_name of the contact. Corresponds to the JSON property displayName

Returns:

  • (String)


447
448
449
# File 'lib/google/apis/authorizedbuyersmarketplace_v1alpha/classes.rb', line 447

def display_name
  @display_name
end

#emailString

Email address for the contact. Corresponds to the JSON property email

Returns:

  • (String)


452
453
454
# File 'lib/google/apis/authorizedbuyersmarketplace_v1alpha/classes.rb', line 452

def email
  @email
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



459
460
461
462
# File 'lib/google/apis/authorizedbuyersmarketplace_v1alpha/classes.rb', line 459

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