Class: AssMaintainer::InfoBase::FileIb::InfoBaseWrapper

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

Overview

Interface for InfoBaseWrapper and ServerIb::InfoBaseWrapper classes

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(infobase) ⇒ InfoBaseWrapper



43
44
45
# File 'lib/ass_maintainer/info_base/file_ib.rb', line 43

def initialize(infobase)
  self.infobase = infobase
end

Instance Attribute Details

#infobaseObject

Returns the value of attribute infobase.



42
43
44
# File 'lib/ass_maintainer/info_base/file_ib.rb', line 42

def infobase
  @infobase
end

Instance Method Details

#lockObject

Lock infobase. It work for server infobase only. For file infobase it do nothing



53
54
# File 'lib/ass_maintainer/info_base/file_ib.rb', line 53

def lock
end

#locked?Object

Lock infobase. It work for server infobase only. For file infobase it return false



65
66
67
# File 'lib/ass_maintainer/info_base/file_ib.rb', line 65

def locked?
  false
end

#locked_we?Object

True if infobase locked this For file infobase it return false



70
71
72
# File 'lib/ass_maintainer/info_base/file_ib.rb', line 70

def locked_we?
  false
end

#sessionsArray <Session>

Returns array of infobase sessions For file infobase returns empty array



48
49
50
# File 'lib/ass_maintainer/info_base/file_ib.rb', line 48

def sessions
  []
end

#unlockObject

Unlock infobase which #locked_we?. It work for server infobase only. For file infobase it do nothing



57
58
# File 'lib/ass_maintainer/info_base/file_ib.rb', line 57

def unlock
end

#unlock!Object

Unlock infobase. It work for server infobase only. For file infobase it do nothing



61
62
# File 'lib/ass_maintainer/info_base/file_ib.rb', line 61

def unlock!
end