Class: Google::Apis::AuthorizedbuyersmarketplaceV1::Contact

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb,
lib/google/apis/authorizedbuyersmarketplace_v1/representations.rb,
lib/google/apis/authorizedbuyersmarketplace_v1/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.



392
393
394
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 392

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)


385
386
387
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 385

def display_name
  @display_name
end

#emailString

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

Returns:

  • (String)


390
391
392
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 390

def email
  @email
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



397
398
399
400
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 397

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