Class: FantasticRobot::Model::User
- Defined in:
- lib/fantastic_robot/model/user.rb
Overview
This object represents a Telegram user or bot.
Constant Summary
Constants inherited from Base
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.
-
#username ⇒ Object
Returns the value of attribute username.
Method Summary
Methods inherited from Base
#attributes, #initialize, #to_h
Constructor Details
This class inherits a constructor from FantasticRobot::Model::Base
Instance Attribute Details
#first_name ⇒ Object
Returns the value of attribute first_name.
5 6 7 |
# File 'lib/fantastic_robot/model/user.rb', line 5 def first_name @first_name end |
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/fantastic_robot/model/user.rb', line 5 def id @id end |
#last_name ⇒ Object
Returns the value of attribute last_name.
5 6 7 |
# File 'lib/fantastic_robot/model/user.rb', line 5 def last_name @last_name end |
#username ⇒ Object
Returns the value of attribute username.
5 6 7 |
# File 'lib/fantastic_robot/model/user.rb', line 5 def username @username end |