Class: TelegramBot::Contact

Inherits:
Struct
  • Object
show all
Includes:
AutoFromMethods
Defined in:
lib/telegram_bot/contact.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from AutoFromMethods

included

Instance Attribute Details

#first_nameObject

Returns the value of attribute first_name

Returns:

  • (Object)

    the current value of first_name



3
4
5
# File 'lib/telegram_bot/contact.rb', line 3

def first_name
  @first_name
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



3
4
5
# File 'lib/telegram_bot/contact.rb', line 3

def id
  @id
end

#last_nameObject

Returns the value of attribute last_name

Returns:

  • (Object)

    the current value of last_name



3
4
5
# File 'lib/telegram_bot/contact.rb', line 3

def last_name
  @last_name
end

#phone_numberObject

Returns the value of attribute phone_number

Returns:

  • (Object)

    the current value of phone_number



3
4
5
# File 'lib/telegram_bot/contact.rb', line 3

def phone_number
  @phone_number
end

Class Method Details

.hash_key_aliasesObject



10
11
12
13
14
# File 'lib/telegram_bot/contact.rb', line 10

def self.hash_key_aliases
  {
    :id => :user_id
  }
end