class Dude::ProjectManagement::Trello::FetchLists

Attributes

client[R]

Public Class Methods

new(client) click to toggle source
# File lib/dude/project_management/trello/fetch_lists.rb, line 7
def initialize(client)
  @client = client
end

Public Instance Methods

call() click to toggle source
# 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