Exception: Gofer::HostError
- Inherits:
-
Exception
- Object
- Exception
- Gofer::HostError
- Defined in:
- lib/gofer/host.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(host, response, message) ⇒ HostError
constructor
A new instance of HostError.
Constructor Details
#initialize(host, response, message) ⇒ HostError
Returns a new instance of HostError.
6 7 8 9 10 |
# File 'lib/gofer/host.rb', line 6 def initialize host, response, @host = host @response = response super "#{host.hostname}: #{}" end |
Instance Attribute Details
#host ⇒ Object (readonly)
Returns the value of attribute host.
5 6 7 |
# File 'lib/gofer/host.rb', line 5 def host @host end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
5 6 7 |
# File 'lib/gofer/host.rb', line 5 def response @response end |