Class: GroupChat

Inherits:
Object
  • Object
show all
Defined in:
lib/telegramObjects.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ GroupChat

Returns a new instance of GroupChat.



23
24
25
26
27
# File 'lib/telegramObjects.rb', line 23

def initialize json
  return if !json
  @id = json["id"]
  @title = json["title"]
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



22
23
24
# File 'lib/telegramObjects.rb', line 22

def id
  @id
end

#titleObject

Returns the value of attribute title.



22
23
24
# File 'lib/telegramObjects.rb', line 22

def title
  @title
end