Class: Telegram::Bot::Types::Error
- Defined in:
- sig/telegram/bot/types/error.rbs
Instance Attribute Summary collapse
-
#description ⇒ String
readonly
Returns the value of attribute description.
-
#error_code ⇒ Integer
readonly
Returns the value of attribute error_code.
-
#ok ⇒ Boolean
readonly
Returns the value of attribute ok.
-
#parameters ⇒ ResponseParameters?
readonly
Returns the value of attribute parameters.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#description ⇒ String (readonly)
Returns the value of attribute description.
10 11 12 |
# File 'sig/telegram/bot/types/error.rbs', line 10 def description @description end |
#error_code ⇒ Integer (readonly)
Returns the value of attribute error_code.
9 10 11 |
# File 'sig/telegram/bot/types/error.rbs', line 9 def error_code @error_code end |
#ok ⇒ Boolean (readonly)
Returns the value of attribute ok.
8 9 10 |
# File 'sig/telegram/bot/types/error.rbs', line 8 def ok @ok end |
#parameters ⇒ ResponseParameters? (readonly)
Returns the value of attribute parameters.
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
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
|