Class: ActiveResource::PersistentConnection::ServerRefusedConnection

Inherits:
Errno::ECONNREFUSED
  • Object
show all
Defined in:
lib/active_resource/persistent_connection.rb

Instance Method Summary collapse

Constructor Details

#initialize(site, path = nil) ⇒ ServerRefusedConnection

Returns a new instance of ServerRefusedConnection.



24
25
26
# File 'lib/active_resource/persistent_connection.rb', line 24

def initialize(site,path=nil)
  @site, @path = site, path
end

Instance Method Details

#messageObject



28
29
30
# File 'lib/active_resource/persistent_connection.rb', line 28

def message
  "Connection refused to #{@site}#{@path}"
end