Class: Google::Apis::AdexchangebuyerV1_4::ContactInformation

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

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



413
414
415
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 413

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

Instance Attribute Details

#emailString

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

Returns:

  • (String)


406
407
408
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 406

def email
  @email
end

#nameString

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

Returns:

  • (String)


411
412
413
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 411

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



418
419
420
421
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 418

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