Sha256: aab066b54dd1c963b6949e13387785dc730a57275bc1c04c5a852b3928b217a1
Contents?: true
Size: 577 Bytes
Versions: 5
Compression:
Stored size: 577 Bytes
Contents
# TODO module Dude module ProjectManagement module Trello class GetCurrentTasks def initialize client = Trello::Client.new response = client.get("/1/lists/#{TODO_LIST_ID}/cards", { fields: 'name,idShort' }) body = JSON.parse(response.body) puts "To Do list\n".green.bold body.map do |issue| binding.pry Entities::Issue.new(id: card['idShort'], title: card['name'], description: issue.description, status: issue.status.name) end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems