Method: Contact#initialize

Defined in:
lib/telegramObjects.rb

#initialize(json) ⇒ Contact

Returns a new instance of Contact.



141
142
143
144
145
146
147
# File 'lib/telegramObjects.rb', line 141

def initialize json
  return if !json
  @phone_number = json["phone_number"]
  @first_name = json["first_name"]
  @last_name = json["last_name"]
  @user_id = json["user_id"]
end