Class: Telegram::Bot::Types::Error

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

#descriptionString (readonly)

Returns the value of attribute description.

Returns:

  • (String)


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

def description
  @description
end

#error_codeInteger (readonly)

Returns the value of attribute error_code.

Returns:

  • (Integer)


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

def error_code
  @error_code
end

#okBoolean (readonly)

Returns the value of attribute ok.

Returns:

  • (Boolean)


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

def ok
  @ok
end

#parametersResponseParameters? (readonly)

Returns the value of attribute parameters.

Returns:



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

def parameters
  @parameters
end

Class Method Details

.new(ok:, error_code:, description:, parameters:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(ok:, error_code:, description:, parameters:) ⇒ instance

    Parameters:

    • ok: (Boolean)
    • error_code: (Integer)
    • description: (String)
    • parameters: (ResponseParameters)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (ok: bool, error_code: Integer, description: String, ?parameters: ResponseParameters) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance