Class: FantasticRobot::Model::Chat
- Defined in:
- lib/fantastic_robot/model/chat.rb
Overview
This object represents a chat.
Constant Summary collapse
- VALID_TYPES =
["private", "group", "supergroup", "channel"]
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.
-
#title ⇒ Object
Returns the value of attribute title.
-
#type ⇒ Object
Returns the value of attribute type.
-
#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.
7 8 9 |
# File 'lib/fantastic_robot/model/chat.rb', line 7 def first_name @first_name end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/fantastic_robot/model/chat.rb', line 7 def id @id end |
#last_name ⇒ Object
Returns the value of attribute last_name.
7 8 9 |
# File 'lib/fantastic_robot/model/chat.rb', line 7 def last_name @last_name end |
#title ⇒ Object
Returns the value of attribute title.
7 8 9 |
# File 'lib/fantastic_robot/model/chat.rb', line 7 def title @title end |
#type ⇒ Object
Returns the value of attribute type.
7 8 9 |
# File 'lib/fantastic_robot/model/chat.rb', line 7 def type @type end |
#username ⇒ Object
Returns the value of attribute username.
7 8 9 |
# File 'lib/fantastic_robot/model/chat.rb', line 7 def username @username end |