Class: AssMaintainer::InfoBase::ServerIb::InfoBaseWrapper

Inherits:
Object
  • Object
show all
Includes:
Interfaces::InfoBaseWrapper
Defined in:
lib/ass_maintainer/info_base/server_ib/helpers.rb

Overview

Wrapper for manipulate with real information base deployed in 1C:Enterprise server ower the 1C Ole classes

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Interfaces::InfoBaseWrapper

#lock, #locked?, #locked_we?, #sessions, #unlock, #unlock!

Constructor Details

#initialize(infobase, server_agent, claster) ⇒ InfoBaseWrapper

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of InfoBaseWrapper.



37
38
39
40
41
# File 'lib/ass_maintainer/info_base/server_ib/helpers.rb', line 37

def initialize(infobase, server_agent, claster)
  self.infobase = infobase
  self.server_agent = server_agent
  self.claster = claster
end

Instance Attribute Details

#clasterObject

Returns the value of attribute claster.



35
36
37
# File 'lib/ass_maintainer/info_base/server_ib/helpers.rb', line 35

def claster
  @claster
end

#infobaseObject

Returns the value of attribute infobase.



35
36
37
# File 'lib/ass_maintainer/info_base/server_ib/helpers.rb', line 35

def infobase
  @infobase
end

#server_agentObject

Returns the value of attribute server_agent.



35
36
37
# File 'lib/ass_maintainer/info_base/server_ib/helpers.rb', line 35

def server_agent
  @server_agent
end

Instance Method Details

#exists?Boolean

True if infobase exists

Returns:

  • (Boolean)


44
45
46
# File 'lib/ass_maintainer/info_base/server_ib/helpers.rb', line 44

def exists?
  fail NotImplementedError
end