Class: Dude::ProjectManagement::Jira::FetchCurrentTasks
- Inherits:
-
Object
- Object
- Dude::ProjectManagement::Jira::FetchCurrentTasks
- Defined in:
- lib/dude/project_management/jira/fetch_current_tasks.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(client) ⇒ FetchCurrentTasks
constructor
A new instance of FetchCurrentTasks.
Constructor Details
#initialize(client) ⇒ FetchCurrentTasks
Returns a new instance of FetchCurrentTasks.
9 10 11 |
# File 'lib/dude/project_management/jira/fetch_current_tasks.rb', line 9 def initialize(client) @client = client end |
Instance Method Details
#call ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/dude/project_management/jira/fetch_current_tasks.rb', line 13 def call board = client.Board.find(Dude::SETTINGS.dig(:jira, :board_id)) all_issues = board_type(board) all_issues.map { |issue| create_issue(issue) } end |