Bogardo\Mailgun\Http\Response::__construct PHP Method

__construct() public method

public __construct ( stdClass $response )
$response stdClass
    public function __construct(stdClass $response)
    {
        $this->status = $response->http_response_code;
        $this->message = $response->http_response_body->message;
        $this->data = null;
    }