Class: TelegramBot::User

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

Instance Attribute Summary collapse

Method Summary

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/user.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/user.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/user.rb', line 3

def last_name
  @last_name
end

#usernameObject

Returns the value of attribute username

Returns:

  • (Object)

    the current value of username



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

def username
  @username
end