Class: Telegram::Bot::Types::VideoQuality

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/video_quality.rbs

Instance Attribute Summary collapse

Attributes inherited from Base

#attributes

Class Method Summary collapse

Methods included from Compactable

#to_compact_hash, #to_json

Methods included from PatternMatching

#deconstruct_keys

Instance Attribute Details

#codecString (readonly)

Returns the value of attribute codec.

Returns:

  • (String)


12
13
14
# File 'sig/telegram/bot/types/video_quality.rbs', line 12

def codec
  @codec
end

#file_idString (readonly)

Returns the value of attribute file_id.

Returns:

  • (String)


8
9
10
# File 'sig/telegram/bot/types/video_quality.rbs', line 8

def file_id
  @file_id
end

#file_sizeInteger? (readonly)

Returns the value of attribute file_size.

Returns:

  • (Integer, nil)


13
14
15
# File 'sig/telegram/bot/types/video_quality.rbs', line 13

def file_size
  @file_size
end

#file_unique_idString (readonly)

Returns the value of attribute file_unique_id.

Returns:

  • (String)


9
10
11
# File 'sig/telegram/bot/types/video_quality.rbs', line 9

def file_unique_id
  @file_unique_id
end

#heightInteger (readonly)

Returns the value of attribute height.

Returns:

  • (Integer)


11
12
13
# File 'sig/telegram/bot/types/video_quality.rbs', line 11

def height
  @height
end

#widthInteger (readonly)

Returns the value of attribute width.

Returns:

  • (Integer)


10
11
12
# File 'sig/telegram/bot/types/video_quality.rbs', line 10

def width
  @width
end

Class Method Details

.new(file_id:, file_unique_id:, width:, height:, codec:, file_size:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(file_id:, file_unique_id:, width:, height:, codec:, file_size:) ⇒ instance

    Parameters:

    • file_id: (String)
    • file_unique_id: (String)
    • width: (Integer)
    • height: (Integer)
    • codec: (String)
    • file_size: (Integer)

    Returns:

    • (instance)
  • .new(attributes) ⇒ instance

    Parameters:

    • attributes (Hash[Symbol | String, untyped])

    Returns:

    • (instance)


6
7
# File 'sig/telegram/bot/types/video_quality.rbs', line 6

def self.new: (file_id: String, file_unique_id: String, width: Integer, height: Integer, codec: String, ?file_size: Integer) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance