Class: Lazylead::Synced
- Inherits:
-
Object
- Object
- Lazylead::Synced
- Defined in:
- lib/lazylead/system/synced.rb
Overview
Thread-save ticketing system.
Instance Method Summary collapse
-
#initialize(sys) ⇒ Synced
constructor
A new instance of Synced.
- #issues(jql) ⇒ Object
Constructor Details
#initialize(sys) ⇒ Synced
Returns a new instance of Synced.
28 29 30 31 |
# File 'lib/lazylead/system/synced.rb', line 28 def initialize(sys) @mutex = Mutex.new @sys = sys end |
Instance Method Details
#issues(jql) ⇒ Object
TODO:
#/DEV Unit tests for ‘issues’ function, moreover the other methods from ticketing system obj are required
36 37 38 39 40 |
# File 'lib/lazylead/system/synced.rb', line 36 def issues(jql) @mutex.synchronize do @sys.issues jql end end |