Class: Dude::ProjectManagement::Trello::FetchLists

Inherits:
Object
  • Object
show all
Defined in:
lib/dude/project_management/trello/fetch_lists.rb

Instance Method Summary collapse

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

#callObject



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