Method: Document#initialize

Defined in:
lib/telegramObjects.rb

#initialize(json) ⇒ Document

Returns a new instance of Document.



106
107
108
109
110
111
112
113
# File 'lib/telegramObjects.rb', line 106

def initialize json
  return if !json
  @file_id = json["file_id"]
  @thumb = PhotoSize.new json["thumb"]
  @file_name = json["file_name"]
  @mime_type = json["mime_type"]
  @file_size = json["file_size"]
end