Class: Restify::Timeout::Error
- Inherits:
-
Timeout::Error
- Object
- Timeout::Error
- Restify::Timeout::Error
- Defined in:
- lib/restify/timeout.rb
Instance Attribute Summary collapse
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Instance Method Summary collapse
-
#initialize(target) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(target) ⇒ Error
Returns a new instance of Error.
70 71 72 73 74 75 76 77 78 |
# File 'lib/restify/timeout.rb', line 70 def initialize(target) @target = target if @target super "Operation on #{@target} timed out" else super 'Operation timed out' end end |
Instance Attribute Details
#target ⇒ Object (readonly)
Returns the value of attribute target.
68 69 70 |
# File 'lib/restify/timeout.rb', line 68 def target @target end |