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.



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

#methodObject (readonly)

Returns the value of attribute method.



34
35
36
# File 'lib/cfoundry/errors.rb', line 34

def method
  @method
end

#parentObject (readonly)

Returns the value of attribute parent.



34
35
36
# File 'lib/cfoundry/errors.rb', line 34

def parent
  @parent
end

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



43
44
45
# File 'lib/cfoundry/errors.rb', line 43

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