/* * call-seq: * private_group -> string * * Returns this connection's "private group name". This is a group * automatically created by Spread that allows private messages to be * sent to this connection. */ static VALUE spconn_private_group(VALUE obj) { struct SpreadConnection *sp_conn; Data_Get_Struct(obj, struct SpreadConnection, sp_conn); return rb_str_new2(sp_conn->private_group); }