Class: Telegram::Bot::Types::PassportFile

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/passport_file.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

#file_dateInteger (readonly)

Returns the value of attribute file_date.

Returns:

  • (Integer)


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

def file_date
  @file_date
end

#file_idString (readonly)

Returns the value of attribute file_id.

Returns:

  • (String)


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

def file_id
  @file_id
end

#file_sizeInteger (readonly)

Returns the value of attribute file_size.

Returns:

  • (Integer)


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

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/passport_file.rbs', line 9

def file_unique_id
  @file_unique_id
end

Class Method Details

.new(file_id:, file_unique_id:, file_size:, file_date:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(file_id:, file_unique_id:, file_size:, file_date:) ⇒ instance

    Parameters:

    • file_id: (String)
    • file_unique_id: (String)
    • file_size: (Integer)
    • file_date: (Integer)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

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