class Netconf::RPC::Executor

Public Class Methods

new( trans, os_type ) click to toggle source
# File lib/net/netconf/rpc.rb, line 55
def initialize( trans, os_type )
  @trans = trans
  begin
    extend Netconf::RPC::const_get( os_type )
  rescue NameError
    # no extensions available ...
  end
end

Public Instance Methods

method_missing( method, params = nil, attrs = nil ) click to toggle source
# File lib/net/netconf/rpc.rb, line 64
def method_missing( method, params = nil, attrs = nil )
  @trans.rpc_exec( Netconf::RPC::Builder.send( method, params, attrs ))
end