Class: AssMaintainer::InfoBase::FileIb::InfoBaseWrapper
- Inherits:
-
Object
- Object
- AssMaintainer::InfoBase::FileIb::InfoBaseWrapper
- 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
-
#infobase ⇒ Object
Returns the value of attribute infobase.
Instance Method Summary collapse
-
#initialize(infobase) ⇒ InfoBaseWrapper
constructor
A new instance of InfoBaseWrapper.
-
#lock ⇒ Object
Lock infobase.
-
#locked? ⇒ Object
Lock infobase.
-
#locked_we? ⇒ Object
True if infobase locked this For file infobase it return
false. -
#sessions ⇒ Array <Session>
Returns array of infobase sessions For file infobase returns empty array.
-
#unlock ⇒ Object
Unlock infobase which #locked_we?.
-
#unlock! ⇒ Object
Unlock infobase.
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
#infobase ⇒ Object
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
#lock ⇒ Object
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 |
#sessions ⇒ Array <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 |
#unlock ⇒ Object
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 |