Class: Avmtrf1::IssueFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/avmtrf1/issues/factory.rb

Class Method Summary collapse

Class Method Details

.factoriesObject


17
18
19
# File 'lib/avmtrf1/issues/factory.rb', line 17

def factories
  [::Avmtrf1.default_jira, ::Avmtrf1.default_redmine]
end

.find(issue_id) ⇒ Object


9
10
11
12
13
14
15
# File 'lib/avmtrf1/issues/factory.rb', line 9

def find(issue_id)
  factories.each do |factory|
    issue = factory.find_issue(issue_id)
    return issue if issue
  end
  nil
end