/* call-seq: * event_data.duration -> Float * * Returns the duration of the ban in minutes. */ static VALUE hostBanEventData_getDuration(VALUE self) { bz_HostBanEventData *eventData; Data_Get_Struct(self, bz_HostBanEventData, eventData); return rb_float_new(eventData->duration); }