Class: GroupChat
- Inherits:
-
Object
- Object
- GroupChat
- Defined in:
- lib/telegramObjects.rb
Overview
Object describing a Chat Group
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(json) ⇒ GroupChat
constructor
A new instance of GroupChat.
Constructor Details
#initialize(json) ⇒ GroupChat
Returns a new instance of GroupChat.
25 26 27 28 29 |
# File 'lib/telegramObjects.rb', line 25 def initialize json return if !json @id = json["id"] @title = json["title"] end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
24 25 26 |
# File 'lib/telegramObjects.rb', line 24 def id @id end |
#title ⇒ Object
Returns the value of attribute title.
24 25 26 |
# File 'lib/telegramObjects.rb', line 24 def title @title end |