Class: Google::Apis::SpectrumV1explorer::Vcard
- Inherits:
-
Object
- Object
- Google::Apis::SpectrumV1explorer::Vcard
- 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
-
#adr ⇒ Google::Apis::SpectrumV1explorer::VcardAddress
The structure used to represent a street address.
-
#email ⇒ Google::Apis::SpectrumV1explorer::VcardTypedText
The structure used to represent an organization and an email address.
-
#fn ⇒ String
The full name of the contact person.
-
#org ⇒ Google::Apis::SpectrumV1explorer::VcardTypedText
The structure used to represent an organization and an email address.
-
#tel ⇒ Google::Apis::SpectrumV1explorer::VcardTelephone
The structure used to represent a telephone number.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Vcard
constructor
A new instance of Vcard.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#adr ⇒ Google::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 |
#email ⇒ Google::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 |
#fn ⇒ String
The full name of the contact person. For example: John A. Smith.
Corresponds to the JSON property fn
1497 1498 1499 |
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 1497 def fn @fn end |
#org ⇒ Google::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 |
#tel ⇒ Google::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 |