Class: Google::Apis::Adexchangebuyer2V2beta1::ContactInformation

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ContactInformation

Returns a new instance of ContactInformation.



626
627
628
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 626

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

Instance Attribute Details

#emailString

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

Returns:

  • (String)


619
620
621
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 619

def email
  @email
end

#nameString

The name of the contact. Corresponds to the JSON property name

Returns:

  • (String)


624
625
626
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 624

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



631
632
633
634
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 631

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