Class: Dude::ProjectManagement::Trello::FetchCurrentTasks
- Inherits:
-
Object
- Object
- Dude::ProjectManagement::Trello::FetchCurrentTasks
- Defined in:
- lib/dude/project_management/trello/fetch_current_tasks.rb
Instance Attribute Summary collapse
-
#fetch_lists ⇒ Object
readonly
Returns the value of attribute fetch_lists.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(client, fetch_lists: nil) ⇒ FetchCurrentTasks
constructor
A new instance of FetchCurrentTasks.
Constructor Details
#initialize(client, fetch_lists: nil) ⇒ FetchCurrentTasks
Returns a new instance of FetchCurrentTasks.
11 12 13 14 15 |
# File 'lib/dude/project_management/trello/fetch_current_tasks.rb', line 11 def initialize(client, fetch_lists: nil) @client = client @fetch_lists = fetch_lists || FetchLists.new(client) end |
Instance Attribute Details
#fetch_lists ⇒ Object (readonly)
Returns the value of attribute fetch_lists.
9 10 11 |
# File 'lib/dude/project_management/trello/fetch_current_tasks.rb', line 9 def fetch_lists @fetch_lists end |
Instance Method Details
#call ⇒ Object
17 18 19 20 |
# File 'lib/dude/project_management/trello/fetch_current_tasks.rb', line 17 def call lists = fetch_lists.call lists.map { |list| retrieve_list_issues(list) }.flatten end |