Class: CFoundry::Timeout
- Inherits:
-
Timeout::Error
- Object
- Timeout::Error
- CFoundry::Timeout
- Defined in:
- lib/cfoundry/errors.rb
Instance Attribute Summary collapse
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(method, uri, parent = nil) ⇒ Timeout
constructor
A new instance of Timeout.
- #to_s ⇒ Object
Constructor Details
#initialize(method, uri, parent = nil) ⇒ Timeout
Returns a new instance of Timeout.
54 55 56 57 58 59 |
# File 'lib/cfoundry/errors.rb', line 54 def initialize(method, uri, parent = nil) @method = method @uri = uri @parent = parent super(to_s) end |
Instance Attribute Details
#method ⇒ Object (readonly)
Returns the value of attribute method.
52 53 54 |
# File 'lib/cfoundry/errors.rb', line 52 def method @method end |
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
52 53 54 |
# File 'lib/cfoundry/errors.rb', line 52 def parent @parent end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
52 53 54 |
# File 'lib/cfoundry/errors.rb', line 52 def uri @uri end |
Instance Method Details
#to_s ⇒ Object
61 62 63 |
# File 'lib/cfoundry/errors.rb', line 61 def to_s "#{method} #{uri} timed out" end |