Class: Dude::ProjectManagement::Trello::FetchLists
- Inherits:
-
Object
- Object
- Dude::ProjectManagement::Trello::FetchLists
- Defined in:
- lib/dude/project_management/trello/fetch_lists.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(client) ⇒ FetchLists
constructor
A new instance of FetchLists.
Constructor Details
#initialize(client) ⇒ FetchLists
Returns a new instance of FetchLists.
7 8 9 |
# File 'lib/dude/project_management/trello/fetch_lists.rb', line 7 def initialize(client) @client = client end |
Instance Method Details
#call ⇒ Object
11 12 13 14 |
# File 'lib/dude/project_management/trello/fetch_lists.rb', line 11 def call response = client.get("/1/board/#{Dude::SETTINGS.dig(:jira, :board_id)}/lists", { fields: 'name' }) JSON.parse(response.body) end |