Class: Google::Apis::SpectrumV1explorer::Vcard

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

Overview

A vCard-in-JSON message that contains only the fields needed for PAWS:

  • fn: Full name of an individual
  • org: Name of the organization
  • adr: Address fields
  • tel: Telephone numbers
  • email: Email addresses

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) ⇒ Vcard

Returns a new instance of Vcard



1509
1510
1511
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 1509

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

Instance Attribute Details

#adrGoogle::Apis::SpectrumV1explorer::VcardAddress

The structure used to represent a street address. Corresponds to the JSON property adr



1487
1488
1489
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 1487

def adr
  @adr
end

#emailGoogle::Apis::SpectrumV1explorer::VcardTypedText

The structure used to represent an organization and an email address. Corresponds to the JSON property email



1492
1493
1494
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 1492

def email
  @email
end

#fnString

The full name of the contact person. For example: John A. Smith. Corresponds to the JSON property fn

Returns:

  • (String)


1497
1498
1499
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 1497

def fn
  @fn
end

#orgGoogle::Apis::SpectrumV1explorer::VcardTypedText

The structure used to represent an organization and an email address. Corresponds to the JSON property org



1502
1503
1504
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 1502

def org
  @org
end

#telGoogle::Apis::SpectrumV1explorer::VcardTelephone

The structure used to represent a telephone number. Corresponds to the JSON property tel



1507
1508
1509
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 1507

def tel
  @tel
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1514
1515
1516
1517
1518
1519
1520
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 1514

def update!(**args)
  @adr = args[:adr] if args.key?(:adr)
  @email = args[:email] if args.key?(:email)
  @fn = args[:fn] if args.key?(:fn)
  @org = args[:org] if args.key?(:org)
  @tel = args[:tel] if args.key?(:tel)
end