/* * Returns a textual representation of the reason_code for the last MQ operation on this queue instance * * Returns => String * * For a complete list of reasons, please see WMQ Constants or * the WebSphere MQ documentation for Reason Codes * * Note * * The list of Reason Codes varies depending on the version of WebSphere MQ * and the operating system on which Ruby WMQ was compiled */ VALUE Queue_reason(VALUE self) { PQUEUE pq; Data_Get_Struct(self, QUEUE, pq); return rb_str_new2(wmq_reason(pq->reason_code)); }