Module: AssLauncher::Enterprise::Ole

Defined in:
lib/ass_launcher/enterprise/ole.rb,
lib/ass_launcher/enterprise/ole/ole_binaries.rb

Overview

1C:Enterprise ole objects layer

Defined Under Namespace

Modules: OleBinaries Classes: AgentConnection, ApplicationConnectError, IbConnection, ThickApplication, ThinApplication, WpConnection

Constant Summary collapse

OLE_CLIENT_TYPES =

Define type of 1C OLE clients

{
  external: AssLauncher::Enterprise::Ole::IbConnection,
  wprocess: AssLauncher::Enterprise::Ole::WpConnection,
  sagent: AssLauncher::Enterprise::Ole::AgentConnection,
  thin: AssLauncher::Enterprise::Ole::ThinApplication,
  thick: AssLauncher::Enterprise::Ole::ThickApplication
}

Class Method Summary collapse

Class Method Details

.ole_client(type) ⇒ Object

Wrapper for OLE_CLIENT_TYPES



10
11
12
13
14
# File 'lib/ass_launcher/enterprise/ole.rb', line 10

def self.ole_client(type)
fail ArgumentError, "Invalid ole type `#{type}'. Use types:"\
  " #{OLE_CLIENT_TYPES.keys}" unless OLE_CLIENT_TYPES.key? type
  OLE_CLIENT_TYPES[type]
end