Class: Contact

Inherits:
Object
  • Object
show all
Defined in:
lib/objects/contact.rb

Overview

Monday, August 24 2020 EAT

This object represents a phone contact.

Instance Method Summary collapse

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_nameObject

Contact’s first name



19
20
21
# File 'lib/objects/contact.rb', line 19

def first_name
  @conta.first_name
end

#last_nameObject

Optional. Contact’s last name



24
25
26
# File 'lib/objects/contact.rb', line 24

def last_name
  @conta.last_name
end

#phone_numberObject

Contact’s phone number.



14
15
16
# File 'lib/objects/contact.rb', line 14

def phone_number
  @conta.phone_number
end

#user_idObject

Optional. Contact’s user identifier in Telegram



29
30
31
# File 'lib/objects/contact.rb', line 29

def user_id
  @conta.user_id
end

#vcardObject

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