Class: TelegramBot::Video

Inherits:
Struct
  • Object
show all
Includes:
AutoFromMethods
Defined in:
lib/telegram_bot/video.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from AutoFromMethods

included

Instance Attribute Details

#captionObject

Returns the value of attribute caption

Returns:

  • (Object)

    the current value of caption



3
4
5
# File 'lib/telegram_bot/video.rb', line 3

def caption
  @caption
end

#durationObject

Returns the value of attribute duration

Returns:

  • (Object)

    the current value of duration



3
4
5
# File 'lib/telegram_bot/video.rb', line 3

def duration
  @duration
end

#file_sizeObject

Returns the value of attribute file_size

Returns:

  • (Object)

    the current value of file_size



3
4
5
# File 'lib/telegram_bot/video.rb', line 3

def file_size
  @file_size
end

#heightObject

Returns the value of attribute height

Returns:

  • (Object)

    the current value of height



3
4
5
# File 'lib/telegram_bot/video.rb', line 3

def height
  @height
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



3
4
5
# File 'lib/telegram_bot/video.rb', line 3

def id
  @id
end

#mime_typeObject

Returns the value of attribute mime_type

Returns:

  • (Object)

    the current value of mime_type



3
4
5
# File 'lib/telegram_bot/video.rb', line 3

def mime_type
  @mime_type
end

#thumbObject

Returns the value of attribute thumb

Returns:

  • (Object)

    the current value of thumb



3
4
5
# File 'lib/telegram_bot/video.rb', line 3

def thumb
  @thumb
end

#widthObject

Returns the value of attribute width

Returns:

  • (Object)

    the current value of width



3
4
5
# File 'lib/telegram_bot/video.rb', line 3

def width
  @width
end

Class Method Details

.extra_typesObject



21
22
23
24
25
# File 'lib/telegram_bot/video.rb', line 21

def self.extra_types
  {
    thumb: TelegramBot::PhotoSize
  }
end

.hash_key_aliasesObject



15
16
17
18
19
# File 'lib/telegram_bot/video.rb', line 15

def self.hash_key_aliases
  {
    :id => :file_id
  }
end