Class: Contact
- Inherits:
-
Object
- Object
- Contact
- Defined in:
- lib/objects/contact.rb
Overview
Monday
, August
24
2020
EAT
This object represents a phone contact.
Instance Method Summary collapse
-
#first_name ⇒ Object
Contact’s first name.
-
#initialize(conta) ⇒ Contact
constructor
:nodoc:.
-
#last_name ⇒ Object
Optional
. -
#phone_number ⇒ Object
Contact’s phone number.
-
#user_id ⇒ Object
Optional
. -
#vcard ⇒ Object
Optional.
Additional data about the contact in the form of a vCard.
Constructor Details
#initialize(conta) ⇒ Contact
:nodoc:
8 9 10 11 |
# File 'lib/objects/contact.rb', line 8 def initialize(conta) # :nodoc: @conta = conta freeze end |
Instance Method Details
#first_name ⇒ Object
Contact’s first name
19 20 21 |
# File 'lib/objects/contact.rb', line 19 def first_name @conta.first_name end |
#last_name ⇒ Object
Optional
. Contact’s last name
24 25 26 |
# File 'lib/objects/contact.rb', line 24 def last_name @conta.last_name end |
#phone_number ⇒ Object
Contact’s phone number.
14 15 16 |
# File 'lib/objects/contact.rb', line 14 def phone_number @conta.phone_number end |
#user_id ⇒ Object
Optional
. Contact’s user identifier in Telegram
29 30 31 |
# File 'lib/objects/contact.rb', line 29 def user_id @conta.user_id end |
#vcard ⇒ Object
Optional.
Additional data about the contact in the form of a vCard
34 35 36 |
# File 'lib/objects/contact.rb', line 34 def vcard @conta.vcard end |