Exception: Gofer::HostError

Inherits:
Exception
  • Object
show all
Defined in:
lib/gofer/host.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

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, message
  @host = host
  @response = response
  super "#{host.hostname}: #{message}"
end

Instance Attribute Details

#hostObject (readonly)

Returns the value of attribute host.



5
6
7
# File 'lib/gofer/host.rb', line 5

def host
  @host
end

#responseObject (readonly)

Returns the value of attribute response.



5
6
7
# File 'lib/gofer/host.rb', line 5

def response
  @response
end