Class: CFoundry::Timeout

Inherits:
Timeout::Error
  • Object
show all
Defined in:
lib/cfoundry/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#methodObject (readonly)

Returns the value of attribute method.



52
53
54
# File 'lib/cfoundry/errors.rb', line 52

def method
  @method
end

#parentObject (readonly)

Returns the value of attribute parent.



52
53
54
# File 'lib/cfoundry/errors.rb', line 52

def parent
  @parent
end

#uriObject (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_sObject



61
62
63
# File 'lib/cfoundry/errors.rb', line 61

def to_s
  "#{method} #{uri} timed out"
end