Class: Google::Apis::DomainsV1alpha2::Contact

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

Overview

Details required for a contact associated with a Registration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Contact

Returns a new instance of Contact.



335
336
337
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 335

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

Instance Attribute Details

#emailString

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

Returns:

  • (String)


307
308
309
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 307

def email
  @email
end

#fax_numberString

Fax number of the contact in international format. For example, "+1-800-555- 0123". Corresponds to the JSON property faxNumber

Returns:

  • (String)


313
314
315
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 313

def fax_number
  @fax_number
end

#phone_numberString

Required. Phone number of the contact in international format. For example, "+ 1-800-555-0123". Corresponds to the JSON property phoneNumber

Returns:

  • (String)


319
320
321
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 319

def phone_number
  @phone_number
end

#postal_addressGoogle::Apis::DomainsV1alpha2::PostalAddress

Represents a postal address, e.g. for postal delivery or payments addresses. Given a postal address, a postal service can deliver items to a premise, P.O. Box or similar. It is not intended to model geographical locations (roads, towns, mountains). In typical usage an address would be created via user input or from importing existing data, depending on the type of process. Advice on address input / editing: - Use an internationalization-ready address widget such as https://github.com/google/libaddressinput) - Users should not be presented with UI elements for input or editing of fields outside countries where that field is used. For more guidance on how to use this schema, please see: https://support.google.com/business/answer/6397478 Corresponds to the JSON property postalAddress



333
334
335
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 333

def postal_address
  @postal_address
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



340
341
342
343
344
345
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 340

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