Exception: MaxBotApi::TimeoutError
- Defined in:
- lib/max_bot_api/errors.rb
Overview
Raised when the request times out.
Instance Attribute Summary collapse
-
#op ⇒ Object
readonly
Returns the value of attribute op.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(op:, reason: nil) ⇒ TimeoutError
constructor
A new instance of TimeoutError.
- #timeout? ⇒ Boolean
Constructor Details
#initialize(op:, reason: nil) ⇒ TimeoutError
Returns a new instance of TimeoutError.
62 63 64 65 66 |
# File 'lib/max_bot_api/errors.rb', line 62 def initialize(op:, reason: nil) @op = op @reason = reason super() end |
Instance Attribute Details
#op ⇒ Object (readonly)
Returns the value of attribute op.
58 59 60 |
# File 'lib/max_bot_api/errors.rb', line 58 def op @op end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
58 59 60 |
# File 'lib/max_bot_api/errors.rb', line 58 def reason @reason end |
Instance Method Details
#timeout? ⇒ Boolean
68 69 70 |
# File 'lib/max_bot_api/errors.rb', line 68 def timeout? true end |