Class: GroupChat

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

Overview

Object describing a Chat Group

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#titleObject

Returns the value of attribute title.



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

def title
  @title
end