Class: Video

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ Video

Returns a new instance of Video.



130
131
132
133
134
135
136
137
138
139
140
# File 'lib/telegramObjects.rb', line 130

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

Instance Attribute Details

#captionObject

Returns the value of attribute caption.



129
130
131
# File 'lib/telegramObjects.rb', line 129

def caption
  @caption
end

#durationObject

Returns the value of attribute duration.



129
130
131
# File 'lib/telegramObjects.rb', line 129

def duration
  @duration
end

#file_idObject

Returns the value of attribute file_id.



129
130
131
# File 'lib/telegramObjects.rb', line 129

def file_id
  @file_id
end

#file_sizeObject

Returns the value of attribute file_size.



129
130
131
# File 'lib/telegramObjects.rb', line 129

def file_size
  @file_size
end

#heightObject

Returns the value of attribute height.



129
130
131
# File 'lib/telegramObjects.rb', line 129

def height
  @height
end

#mime_typeObject

Returns the value of attribute mime_type.



129
130
131
# File 'lib/telegramObjects.rb', line 129

def mime_type
  @mime_type
end

#thumbObject

Returns the value of attribute thumb.



129
130
131
# File 'lib/telegramObjects.rb', line 129

def thumb
  @thumb
end

#widthObject

Returns the value of attribute width.



129
130
131
# File 'lib/telegramObjects.rb', line 129

def width
  @width
end