TimeRange ruby class