Class: Lazylead::Synced

Inherits:
Object
  • Object
show all
Defined in:
lib/lazylead/system/synced.rb

Overview

Thread-save ticketing system.

Instance Method Summary collapse

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