Method: Video#initialize

Defined in:
lib/telegramObjects.rb

#initialize(json) ⇒ Video

Returns a new instance of Video.



126
127
128
129
130
131
132
133
134
135
136
# File 'lib/telegramObjects.rb', line 126

def initialize json
  return if !json
  @file_id = json["file_id"]
  @width = json["width"]
  @height = json["height"]
  @duration = json["duration"]
  @thumb = PhotoSize.new json["thumb"]
  @mime_type = json["mime_type"]
  @file_size = json["file_size"]
  @caption = json["caption"]
end