*** id: db93463a-dd87-4dad-9af5-13974f26b890 title: DetectResult slug: /ruby/reference/calling/results/detect description: The DetectResult object is returned when a detect operation is completed. max-toc-depth: 3 ---------------- [detect]: /docs/server-sdk/v2/ruby/reference/calling/actions/detect [relay-event]: /docs/server-sdk/v2/ruby/reference/event # Relay::Calling::DetectResult This object is returned by [`detect`][detect] method and represents the final result of a detect attempt. ## Properties | Property | Type | Description | | :----------- | :-------------------------- | :---------------------------------------------- | | `successful` | Boolean | Whether the detection attempt succeeded. | | `event` | [Relay::Event][relay-event] | Last event that completed the operation. | | `type` | String | The detector type: `fax`, `machine` or `digit`. | | `result` | String | The final detector result. |