<?php

declare(strict_types=1);

namespace App\Crm;

use Illuminate\Http\Client\Response;

trait HandlesCrmApiResponse
{
    private Response $response;

    /**
     * Get an attribute from the last API response
     */
    public function getResponseAttribute(string $attribute): mixed
    {
        return $this->response->json($attribute);
    }
}
