Class: TelegramBot::Contact
- Inherits:
-
Struct
- Object
- Struct
- TelegramBot::Contact
- Includes:
- AutoFromMethods
- Defined in:
- lib/telegram_bot/contact.rb
Instance Attribute Summary collapse
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#id ⇒ Object
Returns the value of attribute id.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#phone_number ⇒ Object
Returns the value of attribute phone_number.
Class Method Summary collapse
Methods included from AutoFromMethods
Instance Attribute Details
#first_name ⇒ Object
Returns the value of attribute first_name
3 4 5 |
# File 'lib/telegram_bot/contact.rb', line 3 def first_name @first_name end |
#id ⇒ Object
Returns the value of attribute id
3 4 5 |
# File 'lib/telegram_bot/contact.rb', line 3 def id @id end |
#last_name ⇒ Object
Returns the value of attribute last_name
3 4 5 |
# File 'lib/telegram_bot/contact.rb', line 3 def last_name @last_name end |
#phone_number ⇒ Object
Returns the value of attribute phone_number
3 4 5 |
# File 'lib/telegram_bot/contact.rb', line 3 def phone_number @phone_number end |
Class Method Details
.hash_key_aliases ⇒ Object
10 11 12 13 14 |
# File 'lib/telegram_bot/contact.rb', line 10 def self.hash_key_aliases { :id => :user_id } end |