Class: Rbeapi::Eapilib::SocketEapiConnection

Inherits:
EapiConnection show all
Defined in:
lib/rbeapi/eapilib.rb

Instance Attribute Summary

Attributes inherited from EapiConnection

#error

Instance Method Summary collapse

Methods inherited from EapiConnection

#authentication, #execute, #request, #send

Constructor Details

#initialize(opts = {}) ⇒ SocketEapiConnection

Returns a new instance of SocketEapiConnection.


285
286
287
288
289
# File 'lib/rbeapi/eapilib.rb', line 285

def initialize(opts = {})
  path = opts.fetch(:path, DEFAULT_UNIX_SOCKET)
  transport = NetX::HTTPUnix.new("unix://#{path}")
  super(transport)
end