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.
36 37 38 39 40 41 |
# File 'lib/cfoundry/errors.rb', line 36 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.
34 35 36 |
# File 'lib/cfoundry/errors.rb', line 34 def method @method end |
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
34 35 36 |
# File 'lib/cfoundry/errors.rb', line 34 def parent @parent end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
34 35 36 |
# File 'lib/cfoundry/errors.rb', line 34 def uri @uri end |
Instance Method Details
#to_s ⇒ Object
43 44 45 |
# File 'lib/cfoundry/errors.rb', line 43 def to_s "#{method::METHOD} #{uri} timed out" end |