class Dude::ProjectManagement::Trello::GetTaskNameById
Attributes
client[R]
id[R]
Public Class Methods
new(client, id:)
click to toggle source
# File lib/dude/project_management/trello/get_task_name_by_id.rb, line 7 def initialize(client, id:) @client = client @id = id end
Public Instance Methods
call()
click to toggle source
# File lib/dude/project_management/trello/get_task_name_by_id.rb, line 12 def call response = client.get("/1/boards/#{Dude::SETTINGS.dig(:jira, :board_id)}/cards/#{id}") JSON.parse(response.body)['name'] end