Since the id can be call_control_id after Telnyx::Call.create,
which is generated dynamically after this call, we need to check its
definition in order to be able to initialize an empty object.
With this, we should be able to do the following:
call = Telnyx::Call.new
call.id = "some-id"
But the id attribute will always assume the call_control_id coming
from the request after running Telnyx::Call.create.
Since the
id
can becall_control_id
afterTelnyx::Call.create
, which is generated dynamically after this call, we need to check its definition in order to be able to initialize an empty object.With this, we should be able to do the following:
call = Telnyx::Call.new call.id = "some-id"
But the
id
attribute will always assume thecall_control_id
coming from the request after runningTelnyx::Call.create
.